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.InstitutionNetwork.java
License:Open Source License
/** * @return the contacts//from ww w . j ava 2 s . c o m */ @OneToMany(cascade = {}, fetch = FetchType.LAZY, mappedBy = "instTechContact") @org.hibernate.annotations.Cascade({ org.hibernate.annotations.CascadeType.ALL, org.hibernate.annotations.CascadeType.DELETE_ORPHAN }) public Set<Agent> getContacts() { return contacts; }
From source file:edu.ku.brc.specify.datamodel.InstitutionNetwork.java
License:Open Source License
/** * @return the collections//from w ww .jav a 2 s .co m */ @OneToMany(cascade = {}, fetch = FetchType.LAZY, mappedBy = "institutionNetwork") @org.hibernate.annotations.Cascade({ org.hibernate.annotations.CascadeType.ALL, org.hibernate.annotations.CascadeType.DELETE_ORPHAN }) public Set<Collection> getCollections() { return collections; }
From source file:edu.ku.brc.specify.datamodel.LithoStrat.java
License:Open Source License
@OneToMany(cascade = { javax.persistence.CascadeType.ALL }, fetch = FetchType.LAZY, mappedBy = "parent") public Set<LithoStrat> getChildren() { return this.children; }
From source file:edu.ku.brc.specify.datamodel.LithoStrat.java
License:Open Source License
/** * @return the paleoContexts/*from w ww. j a v a 2s . c o m*/ */ @OneToMany(mappedBy = "lithoStrat") @Cascade({ CascadeType.ALL }) public Set<PaleoContext> getPaleoContexts() { return paleoContexts; }
From source file:edu.ku.brc.specify.datamodel.LithoStratTreeDefItem.java
License:Open Source License
/** * /*from www . j a va2s . com*/ */ @OneToMany(cascade = { javax.persistence.CascadeType.ALL }, fetch = FetchType.EAGER, mappedBy = "parent") public Set<LithoStratTreeDefItem> getChildren() { return this.children; }
From source file:edu.ku.brc.specify.datamodel.Loan.java
License:Open Source License
/** * //from w w w . j a v a2 s . c o m */ @OneToMany(cascade = {}, fetch = FetchType.LAZY, mappedBy = "loan") @Cascade({ CascadeType.ALL, CascadeType.DELETE_ORPHAN }) public Set<LoanAgent> getLoanAgents() { return this.loanAgents; }
From source file:edu.ku.brc.specify.datamodel.Loan.java
License:Open Source License
/** * //w ww. j a v a 2 s . c o m */ @OneToMany(cascade = {}, fetch = FetchType.LAZY, mappedBy = "loan") @Cascade({ CascadeType.ALL, CascadeType.DELETE_ORPHAN }) public Set<LoanPreparation> getLoanPreparations() { return this.loanPreparations; }
From source file:edu.ku.brc.specify.datamodel.Loan.java
License:Open Source License
/** * /*from w ww . j a va 2s. com*/ */ @OneToMany(cascade = {}, fetch = FetchType.LAZY, mappedBy = "loan") @Cascade({ CascadeType.ALL, CascadeType.DELETE_ORPHAN }) public Set<Shipment> getShipments() { return this.shipments; }
From source file:edu.ku.brc.specify.datamodel.Loan.java
License:Open Source License
@OneToMany(mappedBy = "loan") @org.hibernate.annotations.Cascade({ org.hibernate.annotations.CascadeType.ALL, org.hibernate.annotations.CascadeType.DELETE_ORPHAN }) @OrderBy("ordinal ASC") public Set<LoanAttachment> getLoanAttachments() { return loanAttachments; }
From source file:edu.ku.brc.specify.datamodel.LoanPreparation.java
License:Open Source License
/** * /*from w w w. j a v a2 s . c o m*/ */ @OneToMany(cascade = {}, fetch = FetchType.LAZY, mappedBy = "loanPreparation") @Cascade({ CascadeType.ALL, CascadeType.DELETE_ORPHAN }) public Set<LoanReturnPreparation> getLoanReturnPreparations() { return this.loanReturnPreparations; }