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:gov.nih.nci.cabig.caaers.domain.Study.java
License:BSD License
/** * Gets the study organizations./*from w ww .j a v a2s . co m*/ * * @return the study organizations */ @OneToMany(mappedBy = "study", fetch = FetchType.LAZY, orphanRemoval = true) @Cascade(value = { CascadeType.ALL }) @UniqueObjectInCollection(message = "Duplicates found in StudyOrganizations list") @OrderBy @Fetch(value = org.hibernate.annotations.FetchMode.SUBSELECT) public List<StudyOrganization> getStudyOrganizations() { return studyOrganizations; }
From source file:gov.nih.nci.cabig.caaers.domain.Study.java
License:BSD License
/** * Gets the treatment assignments internal. * * @return the treatment assignments internal *//*from w ww . ja v a2s.c o m*/ @OneToMany(mappedBy = "study", fetch = FetchType.LAZY, orphanRemoval = true) @Cascade(value = { CascadeType.ALL }) @OrderBy @Fetch(value = org.hibernate.annotations.FetchMode.SUBSELECT) public List<TreatmentAssignment> getTreatmentAssignmentsInternal() { return lazyListHelper.getInternalList(TreatmentAssignment.class); }
From source file:gov.nih.nci.cabig.caaers.domain.Study.java
License:BSD License
/** * Gets the report formats.//from w w w . j av a2s . c om * * @return the report formats */ @OneToMany(fetch = FetchType.LAZY, mappedBy = "study", orphanRemoval = true) @Cascade(value = { CascadeType.ALL }) @Deprecated @Fetch(value = org.hibernate.annotations.FetchMode.SUBSELECT) public List<ReportFormat> getReportFormats() { return reportFormats; }
From source file:gov.nih.nci.cabig.caaers.domain.Study.java
License:BSD License
/** * Gets the epochs.//from w w w . ja v a 2 s .c o m * * @return the epochs */ @OneToMany(fetch = FetchType.LAZY, orphanRemoval = true) @Cascade(value = { CascadeType.ALL }) @JoinColumn(name = "study_id", nullable = false) @OrderBy("epochOrder") @Fetch(value = org.hibernate.annotations.FetchMode.SUBSELECT) public List<Epoch> getEpochs() { return epochs; }
From source file:gov.nih.nci.cabig.caaers.domain.Study.java
License:BSD License
/** * Gets the study conditions.// w w w .jav a 2s . com * * @return the study conditions */ @OneToMany(orphanRemoval = true) @JoinColumn(name = "study_id", nullable = false) @Cascade(value = { CascadeType.ALL }) @Where(clause = "term_type = 'dcp'") @OrderBy @UniqueObjectInCollection(message = "Duplicate - Same condition is associated to the study more than ones") @Fetch(value = org.hibernate.annotations.FetchMode.SUBSELECT) public List<StudyCondition> getStudyConditions() { return studyConditions; }
From source file:gov.nih.nci.cabig.caaers.domain.Study.java
License:BSD License
/** * Gets the expected ae ctc terms.// w w w . j av a 2 s .c o m * * @return the expected ae ctc terms */ @OneToMany(orphanRemoval = true) @JoinColumn(name = "study_id", nullable = false) @Cascade(value = { CascadeType.ALL }) @Where(clause = "term_type = 'ctep'") @Fetch(value = org.hibernate.annotations.FetchMode.SUBSELECT) public List<ExpectedAECtcTerm> getExpectedAECtcTerms() { return expectedAECTCTerms; }
From source file:gov.nih.nci.cabig.caaers.domain.Study.java
License:BSD License
/** * Gets the expected ae meddra low level terms. * * @return the expected ae meddra low level terms *///from w w w . ja va 2 s .c om @OneToMany(orphanRemoval = true) @Fetch(value = org.hibernate.annotations.FetchMode.SUBSELECT) @JoinColumn(name = "study_id", nullable = false) @Cascade(value = { CascadeType.ALL }) @UniqueObjectInCollection(message = "Duplicate - Same term is associated to the study more than once") @Where(clause = "term_type = 'meddra'") public List<ExpectedAEMeddraLowLevelTerm> getExpectedAEMeddraLowLevelTerms() { return expectedAEMeddraTerms; }
From source file:gov.nih.nci.cabig.caaers.domain.StudyAgent.java
License:BSD License
/** * Gets the study agent ind associations internal. * * @return the study agent ind associations internal *//* w ww. ja v a 2 s.c om*/ @OneToMany(mappedBy = "studyAgent", fetch = FetchType.LAZY, orphanRemoval = true) @Cascade({ CascadeType.ALL }) @Fetch(value = org.hibernate.annotations.FetchMode.SUBSELECT) public List<StudyAgentINDAssociation> getStudyAgentINDAssociationsInternal() { return lazyListHelper.getInternalList(StudyAgentINDAssociation.class); }
From source file:gov.nih.nci.cabig.caaers.domain.StudyAgent.java
License:BSD License
@OneToMany(mappedBy = "studyAgent", fetch = FetchType.LAZY, orphanRemoval = true) @Cascade({ CascadeType.ALL }) @Fetch(value = org.hibernate.annotations.FetchMode.SUBSELECT) public List<TreatmentAssignmentAgent> getTreatmentAssignmentAgents() { return treatmentAssignmentAgents; }
From source file:gov.nih.nci.cabig.caaers.domain.StudyDevice.java
License:BSD License
/** * Gets the study agent ind associations internal. * * @return the study agent ind associations internal *///ww w . j a va2s . c o m @OneToMany(mappedBy = "studyDevice", fetch = FetchType.LAZY, orphanRemoval = true) @Cascade({ CascadeType.ALL }) @Fetch(value = org.hibernate.annotations.FetchMode.SUBSELECT) public List<StudyDeviceINDAssociation> getStudyDeviceINDAssociationsInternal() { return lazyListHelper.getInternalList(StudyDeviceINDAssociation.class); }