List of usage examples for org.hibernate.annotations CascadeType ALL
CascadeType ALL
To view the source code for org.hibernate.annotations CascadeType ALL.
Click Source Link
From source file:edu.ku.brc.specify.datamodel.Preparation.java
License:Open Source License
/** * /*from www .jav a 2 s . co m*/ */ @OneToMany(cascade = {}, fetch = FetchType.LAZY, mappedBy = "preparation") @org.hibernate.annotations.Cascade({ org.hibernate.annotations.CascadeType.ALL, org.hibernate.annotations.CascadeType.DELETE_ORPHAN }) public Set<ExchangeOutPrep> getExchangeOutPreps() { return this.exchangeOutPreps; }
From source file:edu.ku.brc.specify.datamodel.Preparation.java
License:Open Source License
/** * @return the preparationAttrs/*from ww w . j ava 2 s .c o m*/ */ @OneToMany(targetEntity = PreparationAttr.class, cascade = {}, fetch = FetchType.LAZY, mappedBy = "preparation") @Cascade({ CascadeType.ALL, CascadeType.DELETE_ORPHAN }) public Set<PreparationAttr> getPreparationAttrs() { return preparationAttrs; }
From source file:edu.ku.brc.specify.datamodel.Preparation.java
License:Open Source License
@OneToMany(mappedBy = "preparation") @org.hibernate.annotations.Cascade({ org.hibernate.annotations.CascadeType.ALL, org.hibernate.annotations.CascadeType.DELETE_ORPHAN }) @OrderBy("ordinal ASC") public Set<PreparationAttachment> getPreparationAttachments() { return preparationAttachments; }
From source file:edu.ku.brc.specify.datamodel.Preparation.java
License:Open Source License
/** * *//* w ww . j a v a2 s . c om*/ @OneToMany(cascade = {}, fetch = FetchType.LAZY, mappedBy = "preparation") @org.hibernate.annotations.Cascade({ org.hibernate.annotations.CascadeType.ALL, org.hibernate.annotations.CascadeType.DELETE_ORPHAN }) public Set<DeaccessionPreparation> getDeaccessionPreparations() { return this.deaccessionPreparations; }
From source file:edu.ku.brc.specify.datamodel.Preparation.java
License:Open Source License
/** * *///w w w . ja va 2 s . c o m @ManyToOne(cascade = { javax.persistence.CascadeType.ALL }, fetch = FetchType.LAZY) @org.hibernate.annotations.Cascade({ org.hibernate.annotations.CascadeType.ALL, org.hibernate.annotations.CascadeType.DELETE_ORPHAN }) @JoinColumn(name = "PreparationAttributeID", unique = false, nullable = true, insertable = true, updatable = true) public PreparationAttribute getPreparationAttribute() { return this.preparationAttribute; }
From source file:edu.ku.brc.specify.datamodel.ReferenceWork.java
License:Open Source License
/** * //from w w w .ja v a2 s.co m */ @OneToMany(cascade = {}, fetch = FetchType.LAZY, mappedBy = "referenceWork") @Cascade({ CascadeType.ALL, CascadeType.DELETE_ORPHAN }) public Set<LocalityCitation> getLocalityCitations() { return this.localityCitations; }
From source file:edu.ku.brc.specify.datamodel.ReferenceWork.java
License:Open Source License
/** * //from w ww . j av a 2s .c o m */ @OneToMany(cascade = {}, fetch = FetchType.LAZY, mappedBy = "referenceWork") @Cascade({ CascadeType.ALL, CascadeType.DELETE_ORPHAN }) public Set<CollectionObjectCitation> getCollectionObjectCitations() { return this.collectionObjectCitations; }
From source file:edu.ku.brc.specify.datamodel.ReferenceWork.java
License:Open Source License
/** * /*from w ww . ja v a 2 s .co m*/ */ @OneToMany(cascade = {}, fetch = FetchType.LAZY, mappedBy = "referenceWork") @Cascade({ CascadeType.ALL, CascadeType.DELETE_ORPHAN }) public Set<TaxonCitation> getTaxonCitations() { return this.taxonCitations; }
From source file:edu.ku.brc.specify.datamodel.ReferenceWork.java
License:Open Source License
/** * /*from ww w . ja va 2 s .c o m*/ */ @OneToMany(cascade = {}, fetch = FetchType.LAZY, mappedBy = "referenceWork") @Cascade({ CascadeType.ALL, CascadeType.DELETE_ORPHAN }) public Set<DeterminationCitation> getDeterminationCitations() { return this.determinationCitations; }
From source file:edu.ku.brc.specify.datamodel.ReferenceWork.java
License:Open Source License
/** * // w ww .ja v a2 s. c om */ @OneToMany(cascade = {}, fetch = FetchType.LAZY, mappedBy = "referenceWork") @Cascade({ CascadeType.ALL, CascadeType.DELETE_ORPHAN }) public Set<Author> getAuthors() { return this.authors; }