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

License:Open Source License

@OneToMany(mappedBy = "fieldNotebookPage", fetch = FetchType.EAGER)
@org.hibernate.annotations.Cascade({ org.hibernate.annotations.CascadeType.ALL,
        org.hibernate.annotations.CascadeType.DELETE_ORPHAN })
@OrderBy("ordinal ASC")
public Set<FieldNotebookPageAttachment> getAttachments() {
    return attachments;
}

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

License:Open Source License

/**
 *
 *///from www.  j a v  a2  s  .c o m
@OneToMany(mappedBy = "geography")
@Cascade({ CascadeType.ALL })
public Set<Locality> getLocalities() {
    return this.localities;
}

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

License:Open Source License

@OneToMany(mappedBy = "parent")
@Cascade({ CascadeType.ALL })
public Set<Geography> getChildren() {
    return this.children;
}

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

License:Open Source License

@OneToMany(cascade = {}, fetch = FetchType.LAZY, mappedBy = "definition") //$NON-NLS-1$
@Cascade({ CascadeType.ALL, CascadeType.DELETE_ORPHAN })
public Set<Geography> getTreeEntries() {
    return this.treeEntries;
}

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

License:Open Source License

@OneToMany(cascade = {}, fetch = FetchType.LAZY, mappedBy = "treeDef") //$NON-NLS-1$
@Cascade({ CascadeType.ALL, CascadeType.DELETE_ORPHAN })
public Set<GeographyTreeDefItem> getTreeDefItems() {
    return this.treeDefItems;
}

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

License:Open Source License

@OneToMany(cascade = { javax.persistence.CascadeType.ALL }, fetch = FetchType.EAGER, mappedBy = "parent")
public Set<GeographyTreeDefItem> getChildren() {
    return this.children;
}

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

License:Open Source License

@OneToMany(mappedBy = "parent")
@Cascade({ CascadeType.ALL })
public Set<GeologicTimePeriod> getChildren() {
    return this.children;
}

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

License:Open Source License

/**
 * @return the bioStratsPaleoContext//from   ww  w.  j  a  va  2s .  c o  m
 */
@OneToMany(mappedBy = "bioStrat")
@Cascade({ CascadeType.ALL })
public Set<PaleoContext> getBioStratsPaleoContext() {
    return bioStratsPaleoContext;
}

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

License:Open Source License

/**
 * @return the chronosStratsPaleoContext
 *//*from   w  w  w.  j  a  va  2s  .  com*/
@OneToMany(mappedBy = "chronosStrat")
@Cascade({ CascadeType.ALL })
public Set<PaleoContext> getChronosStratsPaleoContext() {
    return chronosStratsPaleoContext;
}

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

License:Open Source License

/**
 * // www .j a  v  a 2 s.c  o  m
 */
//@OneToMany(cascade = {}, fetch = FetchType.LAZY, mappedBy = "definition")
//@Cascade( { CascadeType.SAVE_UPDATE, CascadeType.LOCK, CascadeType.MERGE })
@OneToMany(cascade = {}, fetch = FetchType.LAZY, mappedBy = "definition") //$NON-NLS-1$
@Cascade({ CascadeType.ALL, CascadeType.DELETE_ORPHAN })
public Set<GeologicTimePeriod> getTreeEntries() {
    return this.treeEntries;
}