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

License:Open Source License

@OneToMany(mappedBy = "attachment")
@Cascade({ CascadeType.ALL })
public Set<TaxonAttachment> getTaxonAttachments() {
    return taxonAttachments;
}

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

License:Open Source License

@OneToMany(mappedBy = "attachment")
@Cascade({ CascadeType.ALL })
public Set<TreatmentEventAttachment> getTreatmentEventAttachments() {
    return treatmentEventAttachments;
}

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

License:Open Source License

/**
 * @return the borrowAttachments/*from   w  w w . j  av  a2s  . c  o  m*/
 */
@OneToMany(mappedBy = "attachment")
@Cascade({ CascadeType.ALL })
public Set<BorrowAttachment> getBorrowAttachments() {
    return borrowAttachments;
}

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

License:Open Source License

/**
 * @return the giftAttachments/*from ww w .j  a  v  a 2s. co m*/
 */
@OneToMany(mappedBy = "attachment")
@Cascade({ CascadeType.ALL })
public Set<GiftAttachment> getGiftAttachments() {
    return giftAttachments;
}

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

License:Open Source License

/**
 * @return the referenceWorkAttachments//www.j av a  2  s .  co m
 */
@OneToMany(mappedBy = "attachment")
@Cascade({ CascadeType.ALL })
public Set<ReferenceWorkAttachment> getReferenceWorkAttachments() {
    return referenceWorkAttachments;
}

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

License:Open Source License

/**
 * @return/*from  w ww  .j av a2  s  .  c  o m*/
 */
@ManyToOne(cascade = { javax.persistence.CascadeType.ALL }, fetch = FetchType.LAZY)
@org.hibernate.annotations.Cascade({ org.hibernate.annotations.CascadeType.ALL,
        org.hibernate.annotations.CascadeType.DELETE_ORPHAN })
@JoinColumn(name = "AttachmentImageAttributeID", unique = false, nullable = true, insertable = true, updatable = true)
public AttachmentImageAttribute getAttachmentImageAttribute() {
    return this.attachmentImageAttribute;
}

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

License:Open Source License

/**
 * /*from   ww  w  .ja va  2s  .co m*/
 */
@OneToMany(cascade = {}, fetch = FetchType.LAZY, mappedBy = "borrow")
@Cascade({ CascadeType.ALL, CascadeType.DELETE_ORPHAN })
public Set<Shipment> getShipments() {
    return this.shipments;
}

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

License:Open Source License

/**
 * //from   ww w  .j  av a2 s . com
 */
@OneToMany(cascade = {}, fetch = FetchType.LAZY, mappedBy = "borrow")
@Cascade({ CascadeType.ALL, CascadeType.DELETE_ORPHAN })
public Set<BorrowAgent> getBorrowAgents() {
    return this.borrowAgents;
}

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

License:Open Source License

/**
 * /*from   w  w  w .jav  a2s .  c o  m*/
 */
@OneToMany(cascade = {}, fetch = FetchType.LAZY, mappedBy = "borrow")
@Cascade({ CascadeType.ALL, CascadeType.DELETE_ORPHAN })
public Set<BorrowMaterial> getBorrowMaterials() {
    return this.borrowMaterials;
}

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

License:Open Source License

/**
 * @return the borrowAttachments/*  ww w  . j  av  a 2  s .c  o m*/
 */
@OneToMany(mappedBy = "borrow")
@org.hibernate.annotations.Cascade({ org.hibernate.annotations.CascadeType.ALL,
        org.hibernate.annotations.CascadeType.DELETE_ORPHAN })
@OrderBy("ordinal ASC")
public Set<BorrowAttachment> getBorrowAttachments() {
    return borrowAttachments;
}