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.report.ReportTracking.java

License:BSD License

/**
 * Gets the connected to external system.
 *
 * @return the connected to external system
 *///from   w ww .j a v a  2  s  . co m
@OneToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "systemcn_trk_id", nullable = true)
@Cascade(value = { CascadeType.ALL })
public ReportTrackingStatus getConnectedToExternalSystem() {
    return connectedToExternalSystem;
}

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

License:BSD License

/**
 * Gets the submission to external system.
 *
 * @return the submission to external system
 *///ww  w. j  a v  a2 s.c o m
@OneToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "syssub_trk_id", nullable = true)
@Cascade(value = { CascadeType.ALL })
public ReportTrackingStatus getSubmissionToExternalSystem() {
    return submissionToExternalSystem;
}

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

License:BSD License

/**
 * Gets the response from external system.
 *
 * @return the response from external system
 *///from w  w  w  . ja  va 2  s .  co  m
@OneToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "response_trk_id", nullable = true)
@Cascade(value = { CascadeType.ALL })
public ReportTrackingStatus getResponseFromExternalSystem() {
    return responseFromExternalSystem;
}

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

License:BSD License

/**
 * Gets the notification to submitter./*from  w  ww  .j a  v a2  s .  c  o m*/
 *
 * @return the notification to submitter
 */
@OneToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "emailsubn_trk_id", nullable = true)
@Cascade(value = { CascadeType.ALL })
public ReportTrackingStatus getNotificationToSubmitter() {
    return notificationToSubmitter;
}

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

License:BSD License

/**
 * Gets the submitter./*from   w  ww.  j a va2s. c  o  m*/
 *
 * @return the submitter
 */
@OneToOne(mappedBy = "reportVersion", orphanRemoval = true)
@Cascade(value = { CascadeType.ALL })
public Submitter getSubmitter() {
    return submitter;
}

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

License:BSD License

/**
 * Gets the contents./*from  ww  w  .j ava2 s.  co  m*/
 *
 * @return the contents
 */
@OneToMany(orphanRemoval = true)
@JoinColumn(name = "report_version_id", nullable = false)
@Cascade(value = { CascadeType.ALL })
@Fetch(value = org.hibernate.annotations.FetchMode.SUBSELECT)
public List<ReportContent> getContents() {
    return contents;
}

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

License:BSD License

/**
 * Gets the report trackings internal./*from www . j a  v a 2s.co m*/
 *
 * @return the report trackings internal
 */
@OneToMany(fetch = FetchType.LAZY, orphanRemoval = true)
@JoinColumn(name = "report_version_id", nullable = false)
@Cascade(value = { CascadeType.ALL })
@Fetch(value = org.hibernate.annotations.FetchMode.SUBSELECT)
public List<ReportTracking> getReportTrackingsInternal() {
    return reportTrackings;
}

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

License:BSD License

/**
 * This method will return a status text for display purpose's.
 *
 * @return the site research staffs internal
 */// w  ww  .ja  v  a 2 s . c  om

@OneToMany(mappedBy = "researchStaff", fetch = FetchType.LAZY, orphanRemoval = true)
@Cascade(value = { CascadeType.ALL })
@Fetch(value = org.hibernate.annotations.FetchMode.SUBSELECT)
public List<SiteResearchStaff> getSiteResearchStaffsInternal() {
    return lazyListHelper.getInternalList(SiteResearchStaff.class);
}

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

License:BSD License

/**
 * Gets the prior therapy agents internal.
 *
 * @return the prior therapy agents internal
 *//*from w  w w.j a  v  a 2s  . c om*/
@OneToMany(orphanRemoval = true)
@JoinColumn(name = "ae_prior_therapy_id", nullable = false)
@IndexColumn(name = "list_index")
@Cascade(value = { CascadeType.ALL })
@Fetch(value = org.hibernate.annotations.FetchMode.SUBSELECT)
public List<PriorTherapyAgent> getPriorTherapyAgentsInternal() {
    return lazyListHelper.getInternalList(PriorTherapyAgent.class);
}

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

License:BSD License

/**
 * Gets the study investigators.//w w w  . java 2s  . c o m
 *
 * @return the study investigators
 */
@OneToMany(mappedBy = "siteInvestigator", fetch = FetchType.LAZY, orphanRemoval = true)
@Cascade(value = { CascadeType.ALL })
@Fetch(value = org.hibernate.annotations.FetchMode.SUBSELECT)
public List<StudyInvestigator> getStudyInvestigators() {
    return studyInvestigators;
}