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

License:Open Source License

/**
 * @return the altViews//from   w ww  . j  a v a  2  s.  c  o m
 */
@OneToMany(cascade = {}, fetch = FetchType.LAZY, mappedBy = "spView")
@Cascade({ CascadeType.ALL, CascadeType.DELETE_ORPHAN })
public Set<SpUIAltView> getSpAltViews() {
    return spAltViews;
}

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

License:Open Source License

/**
 * @return the rows/*  w w w .j a  v a  2  s  .c o m*/
 */
@OneToMany(cascade = {}, fetch = FetchType.LAZY, mappedBy = "spViewDef")
@Cascade({ CascadeType.ALL, CascadeType.DELETE_ORPHAN })
public Set<SpUIRow> getSpRows() {
    return spRows;
}

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

License:Open Source License

/**
 * @return the spCols// w w  w.j av a  2s .c om
 */
@OneToMany(cascade = {}, fetch = FetchType.LAZY, mappedBy = "spViewDef")
@Cascade({ CascadeType.ALL, CascadeType.DELETE_ORPHAN })
public Set<SpUIColumn> getSpCols() {
    return spCols;
}

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

License:Open Source License

/**
 * @return the viewDefs//from ww w  . j a v a  2 s . c om
 */
@OneToMany(cascade = {}, fetch = FetchType.LAZY, mappedBy = "spViewSet")
@Cascade({ CascadeType.ALL, CascadeType.DELETE_ORPHAN })
public Set<SpUIViewDef> getSpViewDefs() {
    return spViewDefs;
}

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

License:Open Source License

/**
 * @return the views//w ww. java 2s  .  c  o  m
 */
@OneToMany(cascade = {}, fetch = FetchType.LAZY, mappedBy = "spViewSet")
@Cascade({ CascadeType.ALL, CascadeType.DELETE_ORPHAN })
public Set<SpUIView> getSpViews() {
    return spViews;
}

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

License:Open Source License

@OneToMany(mappedBy = "storage")
@org.hibernate.annotations.Cascade({ org.hibernate.annotations.CascadeType.ALL,
        org.hibernate.annotations.CascadeType.DELETE_ORPHAN })
@OrderBy("ordinal ASC")
public Set<StorageAttachment> getStorageAttachments() {
    return storageAttachments;
}

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

License:Open Source License

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

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

License:Open Source License

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

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

License:Open Source License

@OneToMany(cascade = { javax.persistence.CascadeType.ALL }, fetch = FetchType.LAZY, mappedBy = "taxon")
@org.hibernate.annotations.Cascade({ org.hibernate.annotations.CascadeType.ALL,
        org.hibernate.annotations.CascadeType.DELETE_ORPHAN })
public Set<TaxonCitation> getTaxonCitations() {
    return this.taxonCitations;
}

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

License:Open Source License

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