当前位置: 首页>>代码示例>>Java>>正文


Java IndexColumn类代码示例

本文整理汇总了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;
}
 
开发者ID:MobileManAG,项目名称:Project-H-Backend,代码行数:10,代码来源:QuestionType.java

示例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;
}
 
开发者ID:NCIP,项目名称:caarray,代码行数:20,代码来源:AbstractBioMaterial.java

示例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;
}
 
开发者ID:NCIP,项目名称:caarray,代码行数:20,代码来源:Hybridization.java

示例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;
}
 
开发者ID:darciopacifico,项目名称:omr,代码行数:11,代码来源:ParticipationVO.java

示例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;
}
 
开发者ID:hmsiccbl,项目名称:screensaver,代码行数:12,代码来源:Gene.java

示例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;
}
 
开发者ID:hmsiccbl,项目名称:screensaver,代码行数:16,代码来源:SmallMoleculeReagent.java

示例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;
}
 
开发者ID:hmsiccbl,项目名称:screensaver,代码行数:16,代码来源:SmallMoleculeReagent.java

示例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;
}
 
开发者ID:hmsiccbl,项目名称:screensaver,代码行数:12,代码来源:SilencingReagent.java

示例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;
}
 
开发者ID:hmsiccbl,项目名称:screensaver,代码行数:21,代码来源:SilencingReagent.java

示例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;
}
 
开发者ID:micromata,项目名称:projectforge-webapp,代码行数:10,代码来源:AuftragDO.java

示例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;
}
 
开发者ID:micromata,项目名称:projectforge-webapp,代码行数:10,代码来源:AuftragDO.java

示例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;
}
 
开发者ID:micromata,项目名称:projectforge-webapp,代码行数:8,代码来源:EingangsrechnungDO.java

示例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;
}
 
开发者ID:micromata,项目名称:projectforge-webapp,代码行数:8,代码来源:RechnungDO.java

示例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;
}
 
开发者ID:micromata,项目名称:projectforge-webapp,代码行数:10,代码来源:ContactDO.java

示例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;
}
 
开发者ID:NCIP,项目名称:caarray,代码行数:16,代码来源:Experiment.java


注:本文中的org.hibernate.annotations.IndexColumn类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。