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.duke.cabig.c3pr.domain.PlannedNotification.java

License:BSD License

/**
 * Gets the contact mechanism based recipient internal.
 * /*from w  w  w .  j a v  a 2  s .c o  m*/
 * @return the contact mechanism based recipient internal
 */
@OneToMany(fetch = FetchType.LAZY, orphanRemoval = true)
@Cascade(value = { CascadeType.ALL })
@JoinColumn(name = "planned_notfns_id", nullable = false)
@Where(clause = "DTYPE = 'CMR' and retired_indicator  = 'false'")
public List<ContactMechanismBasedRecipient> getContactMechanismBasedRecipientInternal() {
    return lazyListHelper.getInternalList(ContactMechanismBasedRecipient.class);
}

From source file:edu.duke.cabig.c3pr.domain.RegistryStatus.java

License:BSD License

@OneToMany(orphanRemoval = true)
@Cascade({ CascadeType.ALL })
@JoinColumn(name = "registry_st_id")
public List<RegistryStatusReason> getPrimaryReasons() {
    return primaryReasons;
}

From source file:edu.duke.cabig.c3pr.domain.ScheduledEpoch.java

License:BSD License

/**
 * Gets the subject eligibility answers internal.
 * //www . jav a 2  s.  c  o m
 * @return the subject eligibility answers internal
 */
@OneToMany(orphanRemoval = true)
@Cascade({ CascadeType.ALL })
@JoinColumn(name = "SCEPH_ID", nullable = false)
public List<SubjectEligibilityAnswer> getSubjectEligibilityAnswersInternal() {
    return lazyListHelper.getInternalList(SubjectEligibilityAnswer.class);
}

From source file:edu.duke.cabig.c3pr.domain.ScheduledEpoch.java

License:BSD License

/**
 * Gets the subject stratification answers internal.
 * /*from w  ww .  ja va 2s. co m*/
 * @return the subject stratification answers internal
 */
@OneToMany(orphanRemoval = true)
@Cascade({ CascadeType.ALL })
@JoinColumn(name = "SCEPH_ID", nullable = false)
public List<SubjectStratificationAnswer> getSubjectStratificationAnswersInternal() {
    return lazyListHelper.getInternalList(SubjectStratificationAnswer.class);
}

From source file:edu.duke.cabig.c3pr.domain.ScheduledEpoch.java

License:BSD License

/**
 * Gets the scheduled arms internal./* ww  w. ja  va2 s.  c o m*/
 * 
 * @return the scheduled arms internal
 */
@OneToMany(orphanRemoval = true)
@Cascade({ CascadeType.ALL })
@JoinColumn(name = "SCEPH_ID", nullable = false)
public List<ScheduledArm> getScheduledArmsInternal() {
    return lazyListHelper.getInternalList(ScheduledArm.class);
}

From source file:edu.duke.cabig.c3pr.domain.ScheduledEpoch.java

License:BSD License

@OneToMany(orphanRemoval = true)
@Cascade({ CascadeType.ALL })
@JoinColumn(name = "SCEPH_ID", nullable = false)
public List<OffEpochReason> getOffEpochReasons() {
    return offEpochReasons;
}

From source file:edu.duke.cabig.c3pr.domain.StratificationCriterion.java

License:BSD License

/**
 * Gets the permissible answers internal.
 * /* w w  w.  j  av  a 2  s.  co  m*/
 * @return the permissible answers internal
 */
@OneToMany(fetch = FetchType.LAZY, orphanRemoval = true)
@JoinColumn(name = "str_cri_id", nullable = false)
@Cascade(value = { CascadeType.ALL })
@Where(clause = "retired_indicator = 'false'")
public List<StratificationCriterionPermissibleAnswer> getPermissibleAnswersInternal() {
    return lazyListHelper.getInternalList(StratificationCriterionPermissibleAnswer.class);
}

From source file:edu.duke.cabig.c3pr.domain.StratumGroup.java

License:BSD License

/**
 * Gets the stratification criterion answer combination internal.
 * /*from w ww .  ja  v  a  2 s  .  c om*/
 * @return the stratification criterion answer combination internal
 */
@OneToMany(fetch = FetchType.LAZY, orphanRemoval = true)
@Cascade(value = { CascadeType.ALL })
@JoinColumn(name = "STR_GRP_ID")
public List<StratificationCriterionAnswerCombination> getStratificationCriterionAnswerCombinationInternal() {
    return lazyListHelper.getInternalList(StratificationCriterionAnswerCombination.class);
}

From source file:edu.duke.cabig.c3pr.domain.StratumGroup.java

License:BSD License

/**
 * Gets the book randomization entry internal.
 * //from  w  w w.  ja  va 2 s  .  co m
 * @return the book randomization entry internal
 */
@OneToMany(mappedBy = "stratumGroup", fetch = FetchType.LAZY, orphanRemoval = true)
@Cascade(value = { CascadeType.ALL })
public List<BookRandomizationEntry> getBookRandomizationEntryInternal() {
    return lazyListHelper.getInternalList(BookRandomizationEntry.class);
}

From source file:edu.duke.cabig.c3pr.domain.Study.java

License:BSD License

@OneToMany(mappedBy = "studyInternal", fetch = FetchType.LAZY, orphanRemoval = true)
@Cascade(value = { CascadeType.ALL })
@Where(clause = "comp_assoc_id  is null")
@OrderBy//from w w  w . j  av  a 2  s  .  c o m
public List<StudyOrganization> getStudyOrganizations() {
    return studyOrganizations;
}