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

License:Open Source License

/**
 * /*from   www  . j  a  v a2 s  . c  o m*/
 */
@OneToMany(cascade = {}, fetch = FetchType.LAZY, mappedBy = "locality")
@Cascade({ CascadeType.ALL, CascadeType.DELETE_ORPHAN })
public Set<LocalityCitation> getLocalityCitations() {
    return this.localityCitations;
}

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

License:Open Source License

@OneToMany(mappedBy = "locality")
@org.hibernate.annotations.Cascade({ org.hibernate.annotations.CascadeType.ALL,
        org.hibernate.annotations.CascadeType.DELETE_ORPHAN })
@OrderBy("ordinal ASC")
public Set<LocalityAttachment> getLocalityAttachments() {
    return localityAttachments;
}

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

License:Open Source License

@OneToMany(cascade = { javax.persistence.CascadeType.ALL }, mappedBy = "locality")
public Set<LocalityNameAlias> getLocalityNameAliass() {
    return localityNameAliass;
}

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

License:Open Source License

/**
 * @return the localityDetail//  www  . ja  v a2s  .c o m
 */
@OneToMany(cascade = {}, fetch = FetchType.LAZY, mappedBy = "locality")
@org.hibernate.annotations.Cascade({ org.hibernate.annotations.CascadeType.ALL,
        org.hibernate.annotations.CascadeType.DELETE_ORPHAN })
public Set<LocalityDetail> getLocalityDetails() {
    return localityDetails;
}

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

License:Open Source License

/**
 * @return the geoCoordDetail//w ww  . java 2s. c  om
 */
@OneToMany(cascade = {}, fetch = FetchType.LAZY, mappedBy = "locality")
@org.hibernate.annotations.Cascade({ org.hibernate.annotations.CascadeType.ALL,
        org.hibernate.annotations.CascadeType.DELETE_ORPHAN })
public Set<GeoCoordDetail> getGeoCoordDetails() {
    return geoCoordDetails;
}

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

License:Open Source License

/**
 * @return the latLonpolygons//from   w w w. j  av  a 2 s .  com
 */
@OneToMany(cascade = {}, fetch = FetchType.LAZY, mappedBy = "locality")
@org.hibernate.annotations.Cascade({ org.hibernate.annotations.CascadeType.ALL,
        org.hibernate.annotations.CascadeType.DELETE_ORPHAN })
public Set<LatLonPolygon> getLatLonpolygons() {
    return latLonpolygons;
}

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

License:Open Source License

@OneToMany(mappedBy = "permit")
@org.hibernate.annotations.Cascade({ org.hibernate.annotations.CascadeType.ALL,
        org.hibernate.annotations.CascadeType.DELETE_ORPHAN })
@OrderBy("ordinal ASC")
public Set<PermitAttachment> getPermitAttachments() {
    return permitAttachments;
}

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

License:Open Source License

/**
 * /* w  w w  .  java2 s  .c  o m*/
 */
@OneToMany(cascade = {}, fetch = FetchType.LAZY, mappedBy = "preparation")
@org.hibernate.annotations.Cascade({ org.hibernate.annotations.CascadeType.ALL,
        org.hibernate.annotations.CascadeType.DELETE_ORPHAN })
public Set<LoanPreparation> getLoanPreparations() {
    return this.loanPreparations;
}

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

License:Open Source License

/**
 * //  w ww.j  a  va  2s. co m
 */
@OneToMany(cascade = {}, fetch = FetchType.LAZY, mappedBy = "preparation")
@org.hibernate.annotations.Cascade({ org.hibernate.annotations.CascadeType.ALL,
        org.hibernate.annotations.CascadeType.DELETE_ORPHAN })
public Set<GiftPreparation> getGiftPreparations() {
    return this.giftPreparations;
}

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

License:Open Source License

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