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

License:Open Source License

/**
 *      * @hibernate.many-to-one/*from  www  .j  a  v a  2  s  . c  om*/
 */
@ManyToOne(fetch = FetchType.LAZY)
@Cascade({ CascadeType.ALL })
@JoinColumn(name = "LithoStratTreeDefID")
public LithoStratTreeDef getLithoStratTreeDef() {
    return this.lithoStratTreeDef;
}

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

License:Open Source License

/**
 * @return the localeContainers//ww w .  j av a  2  s  .c om
 */
@OneToMany(mappedBy = "discipline")
@Cascade({ CascadeType.ALL, CascadeType.DELETE_ORPHAN })
public Set<SpLocaleContainer> getSpLocaleContainers() {
    return spLocaleContainers;
}

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

License:Open Source License

/**
 * @return the spExportSchemas//from www.  jav  a  2s  .  c o m
 */
@OneToMany(mappedBy = "discipline")
@Cascade({ CascadeType.ALL, CascadeType.DELETE_ORPHAN })
public Set<SpExportSchema> getSpExportSchemas() {
    return spExportSchemas;
}

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

License:Open Source License

/**
* @return the dnaSequencingRuns/*w ww .j  a  va 2s  . c om*/
*/
@OneToMany(mappedBy = "dnaSequence")
@Cascade({ CascadeType.ALL })
@OrderBy("ordinal ASC")
public Set<DNASequencingRun> getDnaSequencingRuns() {
    return dnaSequencingRuns;
}

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

License:Open Source License

@OneToMany(mappedBy = "dnaSequence")
@Cascade({ CascadeType.ALL })
@OrderBy("ordinal ASC")
public Set<DNASequenceAttachment> getAttachments() {
    return attachments;
}

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

License:Open Source License

@ManyToOne(cascade = {}, fetch = FetchType.LAZY)
@JoinColumn(name = "AttachmentID", nullable = false)
@Cascade({ CascadeType.ALL, CascadeType.DELETE_ORPHAN })
public Attachment getAttachment() {
    return this.attachment;
}

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

License:Open Source License

@OneToMany(mappedBy = "dnaSequencingRun")
@Cascade({ CascadeType.ALL })
@OrderBy("ordinal ASC")
public Set<DNASequencingRunAttachment> getAttachments() {
    return attachments;
}

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

License:Open Source License

/**
 * // w  ww. ja va  2s  . c  o m
 */
@OneToMany(cascade = {}, fetch = FetchType.LAZY, mappedBy = "exchangeIn")
@Cascade({ CascadeType.ALL, CascadeType.DELETE_ORPHAN })
public Set<ExchangeInPrep> getExchangeInPreps() {
    return this.exchangeInPreps;
}

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

License:Open Source License

/**
 *      * Shipment information for the exchange
 *///from  ww w.  j  a  v  a 2 s .com
@OneToMany(cascade = {}, fetch = FetchType.LAZY, mappedBy = "exchangeOut")
@Cascade({ CascadeType.ALL, CascadeType.DELETE_ORPHAN })
public Set<Shipment> getShipments() {
    return this.shipments;
}

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

License:Open Source License

/**
 * //from  www. j  av  a  2s.com
 */
@OneToMany(cascade = {}, fetch = FetchType.LAZY, mappedBy = "exchangeOut")
@Cascade({ CascadeType.ALL, CascadeType.DELETE_ORPHAN })
public Set<ExchangeOutPrep> getExchangeOutPreps() {
    return this.exchangeOutPreps;
}