本文整理汇总了Java中org.hibernate.annotations.IndexColumn类的典型用法代码示例。如果您正苦于以下问题:Java IndexColumn类的具体用法?Java IndexColumn怎么用?Java IndexColumn使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
IndexColumn类属于org.hibernate.annotations包,在下文中一共展示了IndexColumn类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getAnswers
import org.hibernate.annotations.IndexColumn; //导入依赖的package包/类
/**
* @return answers all possible answers of a question of given type
*/
@OneToMany(fetch = FetchType.LAZY, mappedBy = "questionType", cascade=CascadeType.ALL, orphanRemoval=true)
@IndexColumn(name = "sort_order")
@Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE)
public List<Answer> getAnswers() {
return this.answers;
}
示例2: getProtocolApplications
import org.hibernate.annotations.IndexColumn; //导入依赖的package包/类
/**
* {@inheritDoc}
*/
// should really be one-to-many, but hibernate bug HHH-3160/HHH-1296 prevents reordering or deleting from the list
// with a unique constraint on protocol_application
@ManyToMany(fetch = FetchType.LAZY)
@JoinTable(
name = "biomaterial_protocol_application",
joinColumns = @JoinColumn(name = "bio_material"),
inverseJoinColumns = @JoinColumn(name = "protocol_application")
)
@IndexColumn(name = "protocol_order")
@ForeignKey(name = "biomaterial_protocol_application_bio_material_fk",
inverseName = "biomaterial_protocol_application_protocol_application_fk")
@Cascade({ org.hibernate.annotations.CascadeType.SAVE_UPDATE, org.hibernate.annotations.CascadeType.DELETE,
org.hibernate.annotations.CascadeType.DELETE_ORPHAN })
public List<ProtocolApplication> getProtocolApplications() {
return this.protocolApplications;
}
示例3: getProtocolApplications
import org.hibernate.annotations.IndexColumn; //导入依赖的package包/类
/**
* {@inheritDoc}
*/
// should really be one-to-many, but hibernate bug HHH-3160/HHH-1296 prevents reordering or deleting from the list
// with a unique constraint on protocol_application
@ManyToMany(fetch = FetchType.LAZY)
@JoinTable(
name = "hybridization_protocol_application",
joinColumns = @JoinColumn(name = "hybridization"),
inverseJoinColumns = @JoinColumn(name = "protocol_application")
)
@IndexColumn(name = "protocol_order")
@ForeignKey(name = "hybridization_protocol_application_hybridization_fk",
inverseName = "hybridization_protocol_application_protocol_application_fk")
@Cascade({ org.hibernate.annotations.CascadeType.SAVE_UPDATE, org.hibernate.annotations.CascadeType.DELETE,
org.hibernate.annotations.CascadeType.DELETE_ORPHAN })
public List<ProtocolApplication> getProtocolApplications() {
return this.protocolApplications;
}
示例4: getCriterionResults
import org.hibernate.annotations.IndexColumn; //导入依赖的package包/类
/**
* @return the questionResults
*/
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER, mappedBy = "participationVO")
@IndexColumn(name = "PK")
@OrderColumn(name = "PK")
@Fetch(FetchMode.SELECT)
public List<CriterionResultVO> getCriterionResults() {
return criterionResults;
}
示例5: getEntrezgeneSymbols
import org.hibernate.annotations.IndexColumn; //导入依赖的package包/类
@ElementCollection
@edu.harvard.med.screensaver.model.annotations.ElementCollection(hasNonconventionalMutation = true)
@Column(name="entrezgeneSymbol", nullable=false, unique = false)
@JoinTable(name="geneSymbol", [email protected](name="geneId"))
@IndexColumn(name = "ordinal")
@org.hibernate.annotations.Type(type="text")
@org.hibernate.annotations.ForeignKey(name="fk_gene_symbol_to_gene")
public List<String> getEntrezgeneSymbols()
{
return _entrezgeneSymbols;
}
示例6: getCompoundNames
import org.hibernate.annotations.IndexColumn; //导入依赖的package包/类
@ElementCollection
/* immutable, unless transient */
@edu.harvard.med.screensaver.model.annotations.ElementCollection(hasNonconventionalMutation = true)
@Column(name = "compoundName", nullable = false, unique = false)
@JoinTable(
name="smallMoleculeCompoundName",
joinColumns = @JoinColumn(name = "reagentId")
)
@IndexColumn(name = "ordinal")
@org.hibernate.annotations.Type(type="text")
@org.hibernate.annotations.ForeignKey(name="fk_small_molecule_compound_name_id_to_small_molecule_reagent")
public List<String> getCompoundNames()
{
return _compoundNames;
}
示例7: getMolfileList
import org.hibernate.annotations.IndexColumn; //导入依赖的package包/类
/**
* @motivation we want lazy loading of molfile property, due to its large data
* size, but can only make it lazy loadable by mapping it in a
* value collection
* @see #getMolfile()
*/
@ElementCollection
@JoinTable(name="molfile", [email protected](name="reagent_id", unique=true)) // note "unique=true" ensures 1-to-1 mapping
@Column(name="molfile", nullable=false)
@IndexColumn(name="ordinal")
@org.hibernate.annotations.Type(type="text")
private List<String> getMolfileList()
{
return _molfile;
}
示例8: getVendorGenes
import org.hibernate.annotations.IndexColumn; //导入依赖的package包/类
@OneToMany(cascade = { CascadeType.PERSIST, CascadeType.MERGE, CascadeType.REMOVE }, fetch = FetchType.LAZY)
@JoinTable(name = "reagentVendorGenes", joinColumns = @JoinColumn(name = "reagentId"), inverseJoinColumns = @JoinColumn(name = "geneId"))
@IndexColumn(name = "ordinal")
@org.hibernate.annotations.Cascade(value = { org.hibernate.annotations.CascadeType.SAVE_UPDATE,
org.hibernate.annotations.CascadeType.DELETE })
@org.hibernate.annotations.ForeignKey(name = "fk_vendor_genes_to_reagent")
@ToMany(hasNonconventionalMutation = true)
public List<Gene> getVendorGenes()
{
return _vendorGenes;
}
示例9: getFacilityGenes
import org.hibernate.annotations.IndexColumn; //导入依赖的package包/类
/**
* Optional gene information provided by the screening facility, which can
* differ from the vendor-provided gene information ({@link #getVendorGene()}).
* In particular if updated gene information is available (names, symbols,
* etc.), this can be reflected here, without affecting the original gene
* information provided by the vendor. Also, if it is determined that this
* silencing reagent in fact targets a different gene than expected, the
* facility gene information can be used reflect this fact.
*/
@OneToMany(cascade = { CascadeType.PERSIST, CascadeType.MERGE, CascadeType.REMOVE }, fetch = FetchType.LAZY)
@JoinTable(name = "reagentFacilityGenes", joinColumns = @JoinColumn(name = "reagentId"), inverseJoinColumns = @JoinColumn(name = "geneId"))
@IndexColumn(name = "ordinal")
@org.hibernate.annotations.Cascade(value = { org.hibernate.annotations.CascadeType.SAVE_UPDATE,
org.hibernate.annotations.CascadeType.DELETE })
@org.hibernate.annotations.ForeignKey(name = "fk_facility_genes_to_reagent")
@ToMany(hasNonconventionalMutation = true)
public List<Gene> getFacilityGenes()
{
return _facilityGenes;
}
示例10: getPositionen
import org.hibernate.annotations.IndexColumn; //导入依赖的package包/类
/**
* Get the position entries for this object.
*/
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER, orphanRemoval = true, mappedBy = "auftrag")
@IndexColumn(name = "number", base = 1)
public List<AuftragsPositionDO> getPositionen()
{
return this.positionen;
}
示例11: getPaymentSchedules
import org.hibernate.annotations.IndexColumn; //导入依赖的package包/类
/**
* Get the payment schedule entries for this object.
*/
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER, orphanRemoval = true, mappedBy = "auftrag")
@IndexColumn(name = "number", base = 1)
public List<PaymentScheduleDO> getPaymentSchedules()
{
return this.paymentSchedules;
}
示例12: getPositionen
import org.hibernate.annotations.IndexColumn; //导入依赖的package包/类
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER, mappedBy = "eingangsrechnung")
@IndexColumn(name = "number", base = 1)
@Override
public List<EingangsrechnungsPositionDO> getPositionen()
{
return this.positionen;
}
示例13: getPositionen
import org.hibernate.annotations.IndexColumn; //导入依赖的package包/类
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER, mappedBy = "rechnung")
@IndexColumn(name = "number", base = 1)
@Override
public List<RechnungsPositionDO> getPositionen()
{
return this.positionen;
}
示例14: getContactEntries
import org.hibernate.annotations.IndexColumn; //导入依赖的package包/类
/**
* Get the contact entries for this object.
*/
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER, orphanRemoval = true, mappedBy = "contact")
@IndexColumn(name = "number", base = 1)
public Set<ContactEntryDO> getContactEntries()
{
return this.contactEntries;
}
示例15: getExperimentContacts
import org.hibernate.annotations.IndexColumn; //导入依赖的package包/类
/**
* Gets the experimentContacts.
*
* @return the experimentContacts
*/
@OneToMany
@IndexColumn(name = "indx")
@JoinColumn(name = "experiment")
@BatchSize(size = AbstractCaArrayObject.DEFAULT_BATCH_SIZE)
@Cascade({ org.hibernate.annotations.CascadeType.SAVE_UPDATE, org.hibernate.annotations.CascadeType.DELETE,
org.hibernate.annotations.CascadeType.DELETE_ORPHAN })
@AttributePolicy(allow = SecurityPolicy.BROWSE_POLICY_NAME)
public List<ExperimentContact> getExperimentContacts() {
return this.experimentContacts;
}