/** * {@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; }
/** * {@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; }
/** * @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; }
/** * @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; }
@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; }
@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; }
/** * 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; }
/** * 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; }
/** * 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; }
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER, mappedBy = "eingangsrechnung") @IndexColumn(name = "number", base = 1) @Override public List<EingangsrechnungsPositionDO> getPositionen() { return this.positionen; }
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER, mappedBy = "rechnung") @IndexColumn(name = "number", base = 1) @Override public List<RechnungsPositionDO> getPositionen() { return this.positionen; }
/** * 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; }
/** * 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; }
/** * @return the hybridizationData */ @ManyToOne @JoinColumn(updatable = false, nullable = false) @ForeignKey(name = "column_hybridizationdata_fk") @IndexColumn(name = "column_index") public HybridizationData getHybridizationData() { return this.hybridizationData; }
/** * @return the columns */ @OneToMany(fetch = FetchType.LAZY) @IndexColumn(name = "COLUMN_INDEX") @Cascade({CascadeType.ALL, CascadeType.DELETE_ORPHAN }) public List<AbstractDataColumn> getColumns() { return columns; }
/** * @return the designElements */ @ManyToMany(fetch = FetchType.LAZY) @IndexColumn(name = "designelement_index") @JoinTable( name = "designelementlist_designelement", joinColumns = { @JoinColumn(name = "designelementlist_id", insertable = false, updatable = false) }, inverseJoinColumns = { @JoinColumn(name = "designelement_id", insertable = false, updatable = false) } ) @ForeignKey(name = "deldedesignelementlist_fk", inverseName = "deldedesignelement_fk") @Cascade(org.hibernate.annotations.CascadeType.SAVE_UPDATE) @MaxSerializableSize(MAX_SERIALIZABLE_SIZE) @LazyCollection(LazyCollectionOption.EXTRA) public List<AbstractDesignElement> getDesignElements() { return designElements; }
/** * @return the hybridizationDatas */ @OneToMany(fetch = FetchType.LAZY) @JoinColumn(name = "data_set") @IndexColumn(name = "HYBRIDIZATION_INDEX") @Cascade(CascadeType.ALL) public List<HybridizationData> getHybridizationDataList() { return hybridizationDataList; }
/** * @return the quantitationTypes */ @ManyToMany(fetch = FetchType.LAZY) @IndexColumn(name = "quantitationtype_index") @JoinTable( name = "datasetquantitationtype", joinColumns = { @JoinColumn(name = "dataset_id") }, inverseJoinColumns = { @JoinColumn(name = "quantitationtype_id") } ) @ForeignKey(name = "dataset_fk", inverseName = "quantitationtype_fk") @Cascade(org.hibernate.annotations.CascadeType.SAVE_UPDATE) public List<QuantitationType> getQuantitationTypes() { return quantitationTypes; }
/** * The blobParts as stored by hibernate. * * @return the blobParts the blobParts. */ @OneToMany(fetch = FetchType.LAZY) @IndexColumn(name = "contents_index") @Cascade(value = CascadeType.ALL) public List<BlobHolder> getBlobParts() { return this.blobParts; }