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

License:Open Source License

/**
 * //from w w w  .j a v  a 2  s. com
 */
@OneToMany(cascade = {}, fetch = FetchType.LAZY, mappedBy = "referenceWork")
@Cascade({ CascadeType.ALL, CascadeType.DELETE_ORPHAN })
public Set<Exsiccata> getExsiccatae() {
    return this.exsiccatae;
}

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

License:Open Source License

/**
 * @return the referenceWorkAttachments//from  w ww.  j  a v a2  s . co m
 */
@OneToMany(mappedBy = "referenceWork")
@org.hibernate.annotations.Cascade({ org.hibernate.annotations.CascadeType.ALL,
        org.hibernate.annotations.CascadeType.DELETE_ORPHAN })
@OrderBy("ordinal ASC")
public Set<ReferenceWorkAttachment> getReferenceWorkAttachments() {
    return referenceWorkAttachments;
}

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

License:Open Source License

/**
 *
 */// w w w  .  j  a  v a2 s  . co m
@OneToMany(cascade = {}, fetch = FetchType.LAZY, mappedBy = "repositoryAgreement")
@Cascade({ CascadeType.ALL, CascadeType.DELETE_ORPHAN })
public Set<AccessionAuthorization> getRepositoryAgreementAuthorizations() {
    return this.repositoryAgreementAuthorizations;
}

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

License:Open Source License

/**
 *
 *///  w ww  .  j a  va  2s.co m
@OneToMany(cascade = {}, fetch = FetchType.LAZY, mappedBy = "repositoryAgreement")
@Cascade({ CascadeType.ALL, CascadeType.DELETE_ORPHAN })
public Set<AccessionAgent> getRepositoryAgreementAgents() {
    return this.repositoryAgreementAgents;
}

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

License:Open Source License

@OneToMany(mappedBy = "repositoryAgreement")
@org.hibernate.annotations.Cascade({ org.hibernate.annotations.CascadeType.ALL,
        org.hibernate.annotations.CascadeType.DELETE_ORPHAN })
@OrderBy("ordinal ASC")
public Set<RepositoryAgreementAttachment> getRepositoryAgreementAttachments() {
    return repositoryAgreementAttachments;
}

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

License:Open Source License

/**
 * @return the addressOfRecord//from ww w. j  a va 2  s.c o  m
 */
@ManyToOne(cascade = { javax.persistence.CascadeType.ALL }, fetch = FetchType.LAZY)
@JoinColumn(name = "AddressOfRecordID", unique = false, nullable = true, insertable = true, updatable = true)
public AddressOfRecord getAddressOfRecord() {
    return addressOfRecord;
}

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

License:Open Source License

@OneToMany(cascade = {}, fetch = FetchType.LAZY, mappedBy = "appResource")
@org.hibernate.annotations.Cascade({ org.hibernate.annotations.CascadeType.ALL,
        org.hibernate.annotations.CascadeType.DELETE_ORPHAN })
public Set<SpReport> getSpReports() {
    return spReports;
}

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

License:Open Source License

/**
 * /* www .j  av a 2 s . c  om*/
 */
@OneToMany(cascade = {}, fetch = FetchType.LAZY, mappedBy = "spAppResource")
@Cascade({ CascadeType.ALL, CascadeType.DELETE_ORPHAN })
public Set<SpAppResourceData> getSpAppResourceDatas() {
    return spAppResourceDatas;
}

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

License:Open Source License

/**
 * @return/*from   ww w . ja va 2 s  .co  m*/
 */
@OneToMany(mappedBy = "spAppResourceDir")
@Cascade({ CascadeType.ALL, CascadeType.DELETE_ORPHAN })
public Set<SpAppResource> getSpPersistedAppResources() {
    return this.spPersistedAppResources;
}

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

License:Open Source License

/**
 * @return//ww w. j a  va2  s .  c o  m
 */
@OneToMany(mappedBy = "spAppResourceDir")
@Cascade({ CascadeType.ALL, CascadeType.DELETE_ORPHAN })
public Set<SpViewSetObj> getSpPersistedViewSets() {
    return this.spPersistedViewSets;
}