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.CollectionObject.java

License:Open Source License

/**
 * /*from  w  w  w  .  j  av a 2 s.c o  m*/
 */
@OneToMany(cascade = {}, fetch = FetchType.LAZY, mappedBy = "rightSide")
@org.hibernate.annotations.Cascade({ org.hibernate.annotations.CascadeType.ALL,
        org.hibernate.annotations.CascadeType.DELETE_ORPHAN })
public Set<CollectionRelationship> getRightSideRels() {
    return this.rightSideRels;
}

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

License:Open Source License

/**
 *
 *///from  ww w .  j  av  a 2s . c o 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<ConservDescription> getConservDescriptions() {
    return this.conservDescriptions;
}

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

License:Open Source License

@OneToMany(mappedBy = "collectionObject")
@org.hibernate.annotations.Cascade({ org.hibernate.annotations.CascadeType.ALL,
        org.hibernate.annotations.CascadeType.DELETE_ORPHAN })
@OrderBy("ordinal ASC")
public Set<CollectionObjectAttachment> getCollectionObjectAttachments() {
    return collectionObjectAttachments;
}

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

License:Open Source License

@OneToMany(mappedBy = "collectionObject")
@org.hibernate.annotations.Cascade({ org.hibernate.annotations.CascadeType.ALL,
        org.hibernate.annotations.CascadeType.DELETE_ORPHAN })
public Set<ExsiccataItem> getExsiccataItems() {
    return exsiccataItems;
}

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

License:Open Source License

@ManyToOne(cascade = {}, fetch = FetchType.EAGER)
@Cascade({ CascadeType.ALL, CascadeType.DELETE_ORPHAN })
@JoinColumn(name = "AttachmentID", nullable = false)
@OrderBy("ordinal ASC")
public Attachment getAttachment() {
    return attachment;
}

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

License:Open Source License

/**
 *
 *//* www.  j a v  a  2  s .  c o m*/
@OneToMany(mappedBy = "discipline")
@Cascade({ CascadeType.ALL, CascadeType.DELETE_ORPHAN })
public Set<Collection> getCollections() {
    return this.collections;
}

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

License:Open Source License

/**
 *
 *//*from   w  w w . ja va2s .com*/
@OneToMany(mappedBy = "discipline")
@Cascade({ CascadeType.ALL, CascadeType.DELETE_ORPHAN })
public Set<AttributeDef> getAttributeDefs() {
    return this.attributeDefs;
}

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

License:Open Source License

/**
 *
 *///from w w  w  .j av  a 2  s .  co  m
@ManyToOne(fetch = FetchType.LAZY)
@Cascade({ CascadeType.ALL, CascadeType.DELETE_ORPHAN })
@JoinColumn(name = "GeographyTreeDefID", nullable = false)
public GeographyTreeDef getGeographyTreeDef() {
    return this.geographyTreeDef;
}

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

License:Open Source License

/**
 *
 *///from w  w w.j a  v a2s .c om
@ManyToOne(fetch = FetchType.LAZY)
@Cascade({ CascadeType.ALL })
@JoinColumn(name = "GeologicTimePeriodTreeDefID", nullable = false)
public GeologicTimePeriodTreeDef getGeologicTimePeriodTreeDef() {
    return this.geologicTimePeriodTreeDef;
}

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

License:Open Source License

/**
 *      * @hibernate.one-to-one/* w  ww  .  ja v a  2  s  . co m*/
 */
@OneToOne
@Cascade({ CascadeType.ALL })
@JoinColumn(name = "TaxonTreeDefID")
public TaxonTreeDef getTaxonTreeDef() {
    return this.taxonTreeDef;
}