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:gov.nih.nci.cabig.caaers.domain.ExpeditedAdverseEventReport.java

License:BSD License

@OneToMany(orphanRemoval = true)
@JoinColumn(name = "report_id", nullable = false)
@IndexColumn(name = "list_index")
@Cascade(value = { CascadeType.ALL })
@Fetch(value = org.hibernate.annotations.FetchMode.SUBSELECT)
protected List<DietarySupplementIntervention> getDietarySupplementInterventionsInternal() {
    return lazyListHelper.getInternalList(DietarySupplementIntervention.class);
}

From source file:gov.nih.nci.cabig.caaers.domain.ExpeditedAdverseEventReport.java

License:BSD License

@OneToMany(orphanRemoval = true)
@JoinColumn(name = "report_id", nullable = false)
@IndexColumn(name = "list_index")
@Cascade(value = { CascadeType.ALL })
@Fetch(value = org.hibernate.annotations.FetchMode.SUBSELECT)
protected List<OtherAEIntervention> getOtherAEInterventionsInternal() {
    return lazyListHelper.getInternalList(OtherAEIntervention.class);
}

From source file:gov.nih.nci.cabig.caaers.domain.ExpeditedAdverseEventReport.java

License:BSD License

/**
 * Gets the concomitant medications internal.
 *
 * @return the concomitant medications internal
 *//*w w  w .  j  a  v  a  2s  . c om*/
@OneToMany(orphanRemoval = true)
@JoinColumn(name = "report_id", nullable = false)
@IndexColumn(name = "list_index")
@Cascade(value = { CascadeType.ALL })
@Fetch(value = org.hibernate.annotations.FetchMode.SUBSELECT)
protected List<ConcomitantMedication> getConcomitantMedicationsInternal() {
    return lazyListHelper.getInternalList(ConcomitantMedication.class);
}

From source file:gov.nih.nci.cabig.caaers.domain.ExpeditedAdverseEventReport.java

License:BSD License

/**
 * Gets the sae report pre existing conditions internal.
 *
 * @return the sae report pre existing conditions internal
 *//* w w w .java  2  s . c o  m*/
@OneToMany(orphanRemoval = true)
@JoinColumn(name = "report_id", nullable = false)
@IndexColumn(name = "list_index")
@Cascade(value = { CascadeType.ALL })
@Fetch(value = org.hibernate.annotations.FetchMode.SUBSELECT)
protected List<SAEReportPreExistingCondition> getSaeReportPreExistingConditionsInternal() {
    return lazyListHelper.getInternalList(SAEReportPreExistingCondition.class);
}

From source file:gov.nih.nci.cabig.caaers.domain.ExpeditedAdverseEventReport.java

License:BSD License

/**
 * Gets the other causes internal./*from   ww  w  .  j av a  2s . c  o  m*/
 *
 * @return the other causes internal
 */
@OneToMany(orphanRemoval = true)
@JoinColumn(name = "report_id", nullable = false)
@IndexColumn(name = "list_index")
@Cascade(value = { CascadeType.ALL })
@Fetch(value = org.hibernate.annotations.FetchMode.SUBSELECT)
protected List<OtherCause> getOtherCausesInternal() {
    return lazyListHelper.getInternalList(OtherCause.class);
}

From source file:gov.nih.nci.cabig.caaers.domain.ExpeditedAdverseEventReport.java

License:BSD License

/**
 * Gets the sae report prior therapies internal.
 *
 * @return the sae report prior therapies internal
 *//*from   w  w w  . j a v  a2 s  .  c o m*/
@OneToMany(orphanRemoval = true)
@JoinColumn(name = "report_id", nullable = false)
@IndexColumn(name = "list_index")
@Cascade(value = { CascadeType.ALL })
@Fetch(value = org.hibernate.annotations.FetchMode.SUBSELECT)
public List<SAEReportPriorTherapy> getSaeReportPriorTherapiesInternal() {
    return lazyListHelper.getInternalList(SAEReportPriorTherapy.class);
}

From source file:gov.nih.nci.cabig.caaers.domain.ExpeditedAdverseEventReport.java

License:BSD License

/**
 * Gets the treatment information./*from ww  w.  ja v a2 s  . c om*/
 *
 * @return the treatment information
 */
@OneToOne(fetch = FetchType.LAZY, mappedBy = "report", orphanRemoval = true)
@Cascade(value = { CascadeType.ALL })
public TreatmentInformation getTreatmentInformation() {
    if (treatmentInformation == null)
        setTreatmentInformation(new TreatmentInformation());
    return treatmentInformation;
}

From source file:gov.nih.nci.cabig.caaers.domain.ExpeditedAdverseEventReport.java

License:BSD License

/**
 * Gets the additional information./*from w w w.  j  av a2  s  . c  o  m*/
 *
 * @return the additional information
 */
@OneToOne(fetch = FetchType.LAZY, mappedBy = "report", orphanRemoval = true)
@Cascade(value = { CascadeType.ALL })
public AdditionalInformation getAdditionalInformation() {
    if (additionalInformation == null)
        setAdditionalInformation(new AdditionalInformation());
    return additionalInformation;
}

From source file:gov.nih.nci.cabig.caaers.domain.ExpeditedAdverseEventReport.java

License:BSD License

/**
 * Gets the response description.//from  w  w  w  .  ja  va 2  s. c  om
 *
 * @return the response description
 */
@OneToOne(fetch = FetchType.LAZY, mappedBy = "report", orphanRemoval = true)
@Cascade(value = { CascadeType.ALL })
public AdverseEventResponseDescription getResponseDescription() {
    if (responseDescription == null)
        setResponseDescription(new AdverseEventResponseDescription());
    return responseDescription;
}

From source file:gov.nih.nci.cabig.caaers.domain.ExpeditedAdverseEventReport.java

License:BSD License

/**
 * Gets the disease history.//from   w  w  w.  ja v  a2s .  c o  m
 *
 * @return the disease history
 */
@OneToOne(mappedBy = "report", fetch = FetchType.LAZY)
@Cascade(value = { CascadeType.ALL })
public DiseaseHistory getDiseaseHistory() {
    if (diseaseHistory == null)
        setDiseaseHistory(new DiseaseHistory());
    return diseaseHistory;
}