Example usage for org.hibernate.annotations CascadeType ALL

List of usage examples for org.hibernate.annotations CascadeType ALL

Introduction

In this page you can find the example usage for org.hibernate.annotations CascadeType ALL.

Prototype

CascadeType ALL

To view the source code for org.hibernate.annotations CascadeType ALL.

Click Source Link

Document

Includes all types listed here.

Usage

From source file:edu.ku.brc.specify.datamodel.Collection.java

License:Open Source License

/**
 * @return the pickLists//  ww  w  .ja  v  a 2  s .c o m
 */
@OneToMany(mappedBy = "collection")
@Cascade({ CascadeType.ALL, CascadeType.DELETE_ORPHAN })
public Set<PickList> getPickLists() {
    return pickLists;
}

From source file:edu.ku.brc.specify.datamodel.CollectionObject.java

License:Open Source License

/**
 *
 *///from w ww .  j a v  a2 s  . com
@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 = "CollectionObjectAttributeID", unique = false, nullable = true, insertable = true, updatable = true)
public CollectionObjectAttribute getCollectionObjectAttribute() {
    return this.collectionObjectAttribute;
}

From source file:edu.ku.brc.specify.datamodel.CollectionObject.java

License:Open Source License

/**
 *
 *///  w w w. jav  a 2  s.  c o m
@OneToMany(cascade = {
        javax.persistence.CascadeType.ALL }, fetch = FetchType.LAZY, mappedBy = "collectionObject")
@org.hibernate.annotations.Cascade({ org.hibernate.annotations.CascadeType.ALL,
        org.hibernate.annotations.CascadeType.DELETE_ORPHAN })
public Set<CollectionObjectCitation> getCollectionObjectCitations() {
    return this.collectionObjectCitations;
}

From source file:edu.ku.brc.specify.datamodel.CollectionObject.java

License:Open Source License

/**
 * @return the collectionObjectAttrs//from  w w  w.  ja  v  a 2 s .  c om
 */
@OneToMany(targetEntity = CollectionObjectAttr.class, cascade = {}, fetch = FetchType.LAZY, mappedBy = "collectionObject")
@Cascade({ CascadeType.ALL, CascadeType.DELETE_ORPHAN })
public Set<CollectionObjectAttr> getCollectionObjectAttrs() {
    return collectionObjectAttrs;
}

From source file:edu.ku.brc.specify.datamodel.CollectionObject.java

License:Open Source License

/**
 *
 *//*from  w w w  . j  ava 2  s.  co  m*/
@OneToMany(mappedBy = "collectionObject")
@org.hibernate.annotations.Cascade({ org.hibernate.annotations.CascadeType.ALL,
        org.hibernate.annotations.CascadeType.DELETE_ORPHAN })
public Set<Preparation> getPreparations() {
    return this.preparations;
}

From source file:edu.ku.brc.specify.datamodel.CollectionObject.java

License:Open Source License

/**
 *
 *//*from ww w . ja va  2 s. c om*/
@OneToMany(mappedBy = "collectionObject")
@org.hibernate.annotations.Cascade({ org.hibernate.annotations.CascadeType.ALL,
        org.hibernate.annotations.CascadeType.DELETE_ORPHAN })
public Set<Determination> getDeterminations() {
    return this.determinations;
}

From source file:edu.ku.brc.specify.datamodel.CollectionObject.java

License:Open Source License

/**
 * @return the collectionObjects//from   w  ww .  j  a va  2s .c o m
 */
@OneToMany(mappedBy = "collectionObject")
@org.hibernate.annotations.Cascade({ org.hibernate.annotations.CascadeType.ALL,
        org.hibernate.annotations.CascadeType.DELETE_ORPHAN })
public Set<DNASequence> getDnaSequences() {
    return dnaSequences;
}

From source file:edu.ku.brc.specify.datamodel.CollectionObject.java

License:Open Source License

/**
 * @return the treatmentEvents/*from w w  w .j  ava2s  .co m*/
 */
@OneToMany(cascade = {}, fetch = FetchType.LAZY, mappedBy = "collectionObject")
@org.hibernate.annotations.Cascade({ org.hibernate.annotations.CascadeType.ALL,
        org.hibernate.annotations.CascadeType.DELETE_ORPHAN })
public Set<TreatmentEvent> getTreatmentEvents() {
    return treatmentEvents;
}

From source file:edu.ku.brc.specify.datamodel.CollectionObject.java

License:Open Source License

/**
 *
 *//*from   ww w.ja  v  a2  s . c om*/
@OneToMany(cascade = {
        javax.persistence.CascadeType.ALL }, fetch = FetchType.LAZY, mappedBy = "collectionObject")
@org.hibernate.annotations.Cascade({ org.hibernate.annotations.CascadeType.ALL,
        org.hibernate.annotations.CascadeType.DELETE_ORPHAN })
public Set<OtherIdentifier> getOtherIdentifiers() {
    return this.otherIdentifiers;
}

From source file:edu.ku.brc.specify.datamodel.CollectionObject.java

License:Open Source License

/**
 * /* w ww .  ja va  2 s . c o m*/
 */
@OneToMany(cascade = {}, fetch = FetchType.LAZY, mappedBy = "leftSide")
@org.hibernate.annotations.Cascade({ org.hibernate.annotations.CascadeType.ALL,
        org.hibernate.annotations.CascadeType.DELETE_ORPHAN })
public Set<CollectionRelationship> getLeftSideRels() {
    return this.leftSideRels;
}