List of usage examples for org.hibernate.annotations CascadeType ALL
CascadeType ALL
To view the source code for org.hibernate.annotations CascadeType ALL.
Click Source Link
From source file:edu.duke.cabig.c3pr.domain.Study.java
License:BSD License
@OneToMany(orphanRemoval = true) @Cascade({ CascadeType.ALL }) @JoinColumn(name = "STU_ID") @Where(clause = "retired_indicator = 'false'") @OrderBy/*www .j ava2 s. c om*/ public List<Identifier> getIdentifiers() { return identifiers; }
From source file:edu.duke.cabig.c3pr.domain.Study.java
License:BSD License
@OneToMany(fetch = FetchType.LAZY, orphanRemoval = true) @JoinColumn(name = "stu_id", nullable = true) @Cascade(value = { CascadeType.ALL }) @Where(clause = "retired_indicator = 'false'") @OrderBy("id")/* w ww . j a va 2 s . c om*/ public List<PlannedNotification> getPlannedNotificationsInternal() { return lazyListHelper.getInternalList(PlannedNotification.class); }
From source file:edu.duke.cabig.c3pr.domain.Study.java
License:BSD License
@OneToMany(orphanRemoval = true) @Cascade(value = { CascadeType.ALL }) @JoinColumn(name = "stu_id") public List<EndPoint> getEndpoints() { return endpoints; }
From source file:edu.duke.cabig.c3pr.domain.Study.java
License:BSD License
@OneToMany(mappedBy = "study", fetch = FetchType.LAZY, orphanRemoval = true) @Cascade(value = { CascadeType.ALL }) public List<CustomFieldDefinition> getCustomFieldDefinitionsInternal() { return lazyListHelper.getInternalList(CustomFieldDefinition.class); }
From source file:edu.duke.cabig.c3pr.domain.Study.java
License:BSD License
@OneToMany(mappedBy = "study", fetch = FetchType.LAZY, orphanRemoval = true) @Cascade(value = { CascadeType.ALL }) public List<CustomField> getCustomFieldsInternal() { return lazyListHelper.getInternalList(CustomField.class); }
From source file:edu.duke.cabig.c3pr.domain.Study.java
License:BSD License
@OneToMany(mappedBy = "study", fetch = FetchType.LAZY, orphanRemoval = true) @Cascade(value = { CascadeType.ALL }) @Where(clause = "retired_indicator = 'false'") @OrderBy("versionDate") public List<StudyVersion> getStudyVersionsInternal() { return lazyListHelper.getInternalList(StudyVersion.class); }
From source file:edu.duke.cabig.c3pr.domain.Study.java
License:BSD License
@OneToMany(orphanRemoval = true) @Cascade(value = { CascadeType.ALL }) @JoinColumn(name = "study_id", nullable = false) @Where(clause = "retired_indicator = 'false'") public List<PermissibleStudySubjectRegistryStatus> getPermissibleStudySubjectRegistryStatusesInternal() { return lazyListHelper.getInternalList(PermissibleStudySubjectRegistryStatus.class); }
From source file:edu.duke.cabig.c3pr.domain.StudyOrganization.java
License:BSD License
/** * Gets the study investigators internal. * //from w ww . j a va 2 s . com * @return the study investigators internal */ @OneToMany(mappedBy = "studyOrganization", orphanRemoval = true) @Cascade(value = { CascadeType.ALL }) @Where(clause = "retired_indicator = 'false'") public List<StudyInvestigator> getStudyInvestigatorsInternal() { return lazyListHelper.getInternalList(StudyInvestigator.class); }
From source file:edu.duke.cabig.c3pr.domain.StudyOrganization.java
License:BSD License
/** * Gets the study personnel internal.//from w w w .j ava2 s.co m * * @return the study personnel internal */ @OneToMany(mappedBy = "studyOrganization", orphanRemoval = true) @Cascade(value = { CascadeType.ALL }) @Where(clause = "retired_indicator = 'false'") public List<StudyPersonnel> getStudyPersonnelInternal() { return lazyListHelper.getInternalList(StudyPersonnel.class); }
From source file:edu.duke.cabig.c3pr.domain.StudyOrganization.java
License:BSD License
/** * Gets the custom field definitions internal. * //from w w w.jav a 2 s . c o m * @return the custom field definitions internal */ @OneToMany(mappedBy = "studyOrganization", fetch = FetchType.LAZY, orphanRemoval = true) @Cascade(value = { CascadeType.ALL }) public List<CustomFieldDefinition> getCustomFieldDefinitionsInternal() { return lazyListHelper.getInternalList(CustomFieldDefinition.class); }