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.GeologicTimePeriodTreeDefItem.java
License:Open Source License
/** * //w w w. ja v a 2s.co m */ @OneToMany(cascade = { javax.persistence.CascadeType.ALL }, fetch = FetchType.EAGER, mappedBy = "parent") public Set<GeologicTimePeriodTreeDefItem> getChildren() { return this.children; }
From source file:edu.ku.brc.specify.datamodel.Gift.java
License:Open Source License
/** * //from w w w .j a v a 2 s .c o m */ @OneToMany(cascade = {}, fetch = FetchType.LAZY, mappedBy = "gift") @Cascade({ CascadeType.ALL, CascadeType.DELETE_ORPHAN }) public Set<GiftAgent> getGiftAgents() { return this.giftAgents; }
From source file:edu.ku.brc.specify.datamodel.Gift.java
License:Open Source License
/** * /* w ww .java 2 s . c o m*/ */ @OneToMany(cascade = {}, fetch = FetchType.LAZY, mappedBy = "gift") @Cascade({ CascadeType.ALL, CascadeType.DELETE_ORPHAN }) public Set<GiftPreparation> getGiftPreparations() { return this.giftPreparations; }
From source file:edu.ku.brc.specify.datamodel.Gift.java
License:Open Source License
/** * //w w w.j a v a 2 s. c om */ @OneToMany(cascade = {}, fetch = FetchType.LAZY, mappedBy = "gift") @Cascade({ CascadeType.ALL, CascadeType.DELETE_ORPHAN }) public Set<Shipment> getShipments() { return this.shipments; }
From source file:edu.ku.brc.specify.datamodel.Gift.java
License:Open Source License
/** * @return the giftAttachments/*from w w w . j a v a2 s. c o m*/ */ @OneToMany(mappedBy = "gift") @org.hibernate.annotations.Cascade({ org.hibernate.annotations.CascadeType.ALL, org.hibernate.annotations.CascadeType.DELETE_ORPHAN }) @OrderBy("ordinal ASC") public Set<GiftAttachment> getGiftAttachments() { return giftAttachments; }
From source file:edu.ku.brc.specify.datamodel.Institution.java
License:Open Source License
/** * @return the contentContacts//from w ww. ja v a 2 s .c o m */ @OneToMany(cascade = {}, fetch = FetchType.LAZY, mappedBy = "instContentContact") @org.hibernate.annotations.Cascade({ org.hibernate.annotations.CascadeType.ALL, org.hibernate.annotations.CascadeType.DELETE_ORPHAN }) public Set<Agent> getContentContacts() { return contentContacts; }
From source file:edu.ku.brc.specify.datamodel.Institution.java
License:Open Source License
/** * @return the technicalContacts//from w w w . j a v a2s . co 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> getTechnicalContacts() { return technicalContacts; }
From source file:edu.ku.brc.specify.datamodel.Institution.java
License:Open Source License
/** * @return the address//from www.ja va 2s .com */ @ManyToOne(cascade = {}, fetch = FetchType.LAZY) @Cascade({ CascadeType.ALL, CascadeType.DELETE_ORPHAN }) @JoinColumn(name = "AddressID", unique = false, nullable = true, insertable = true, updatable = true) public Address getAddress() { return address; }
From source file:edu.ku.brc.specify.datamodel.Institution.java
License:Open Source License
/** * @return the divisions/*w w w. j a v a 2s .c o m*/ */ @OneToMany(cascade = {}, fetch = FetchType.LAZY, mappedBy = "institution") @org.hibernate.annotations.Cascade({ org.hibernate.annotations.CascadeType.ALL, org.hibernate.annotations.CascadeType.DELETE_ORPHAN }) public Set<Division> getDivisions() { return divisions; }
From source file:edu.ku.brc.specify.datamodel.Institution.java
License:Open Source License
/** * //w ww. j a v a2s . c om */ @ManyToOne(cascade = {}, fetch = FetchType.LAZY) @Cascade({ CascadeType.ALL, CascadeType.DELETE_ORPHAN }) @JoinColumn(name = "StorageTreeDefID") public StorageTreeDef getStorageTreeDef() { return this.storageTreeDef; }