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.SiteResearchStaff.java
License:BSD License
/** * Gets the site research staff roles.// www . j a va 2 s.c o m * * @return the site research staff roles */ @OneToMany(mappedBy = "siteResearchStaff", fetch = FetchType.LAZY, orphanRemoval = true) @Cascade(value = { CascadeType.ALL }) @Fetch(value = org.hibernate.annotations.FetchMode.SUBSELECT) public List<SiteResearchStaffRole> getSiteResearchStaffRoles() { return siteResearchStaffRoles; }
From source file:gov.nih.nci.cabig.caaers.domain.SiteResearchStaff.java
License:BSD License
/** * Gets the study personnels.//from w ww. ja v a2s. co m * * @return the study personnels */ @OneToMany(mappedBy = "siteResearchStaff", fetch = FetchType.LAZY, orphanRemoval = true) @Cascade(value = { CascadeType.ALL }) @Fetch(value = org.hibernate.annotations.FetchMode.SUBSELECT) public List<StudyPersonnel> getStudyPersonnels() { return studyPersonnels; }
From source file:gov.nih.nci.cabig.caaers.domain.Study.java
License:BSD License
/** * Gets the study devices.//w ww. j a v a 2s .c o m * * @return the study devices */ @OneToMany(mappedBy = "study", fetch = FetchType.LAZY, orphanRemoval = true) @Cascade(value = { CascadeType.ALL }) @OrderBy @Fetch(value = org.hibernate.annotations.FetchMode.SUBSELECT) public List<StudyDevice> getStudyDevicesInternal() { return lazyListHelper.getInternalList(StudyDevice.class); }
From source file:gov.nih.nci.cabig.caaers.domain.Study.java
License:BSD License
/** * Gets the other interventions./*from ww w. ja v a 2s . c o m*/ * * @return the other interventions */ @OneToMany(mappedBy = "study", fetch = FetchType.LAZY, orphanRemoval = true) @Cascade(value = { CascadeType.ALL }) @OrderBy @Fetch(value = org.hibernate.annotations.FetchMode.SUBSELECT) public List<OtherIntervention> getOtherInterventionsInternal() { return lazyListHelper.getInternalList(OtherIntervention.class); }
From source file:gov.nih.nci.cabig.caaers.domain.Study.java
License:BSD License
/** * Gets the disease terminology./*from ww w. j a va2 s . c o m*/ * * @return the disease terminology */ @OneToOne(fetch = FetchType.LAZY, mappedBy = "study", orphanRemoval = true) @Cascade(value = { CascadeType.ALL }) public DiseaseTerminology getDiseaseTerminology() { if (diseaseTerminology == null) { diseaseTerminology = new DiseaseTerminology(); diseaseTerminology.setStudy(this); } return diseaseTerminology; }
From source file:gov.nih.nci.cabig.caaers.domain.Study.java
License:BSD License
/** * Gets the ae terminology.// w w w .j a v a 2 s .com * * @return the ae terminology */ @OneToOne(fetch = FetchType.LAZY, mappedBy = "study", orphanRemoval = true) @Cascade(value = { CascadeType.ALL }) public AeTerminology getAeTerminology() { if (aeTerminology == null) { aeTerminology = new AeTerminology(); aeTerminology.setStudy(this); } return aeTerminology; }
From source file:gov.nih.nci.cabig.caaers.domain.Study.java
License:BSD License
@Override @OneToMany(orphanRemoval = true)/*from www .j a v a 2 s . c o m*/ @Cascade({ CascadeType.ALL }) @JoinColumn(name = "STU_ID") @OrderBy @Fetch(value = org.hibernate.annotations.FetchMode.SUBSELECT) public List<Identifier> getIdentifiers() { return lazyListHelper.getInternalList(Identifier.class); }
From source file:gov.nih.nci.cabig.caaers.domain.Study.java
License:BSD License
/** * Gets the study agents internal.//from w ww . ja v a 2s. c om * * @return the study agents internal */ @OneToMany(mappedBy = "study", fetch = FetchType.LAZY, orphanRemoval = true) @Cascade(value = { CascadeType.ALL }) @OrderBy @Fetch(value = org.hibernate.annotations.FetchMode.SUBSELECT) public List<StudyAgent> getStudyAgentsInternal() { return lazyListHelper.getInternalList(StudyAgent.class); }
From source file:gov.nih.nci.cabig.caaers.domain.Study.java
License:BSD License
/** * Gets the ctep study diseases./*from w w w .j a v a2s . c om*/ * * @return the ctep study diseases */ @OneToMany(orphanRemoval = true) @JoinColumn(name = "study_id", nullable = false) @Cascade(value = { CascadeType.ALL }) @Where(clause = "term_type = 'ctep'") @OrderBy @UniqueObjectInCollection(message = "Duplicates found in CtepStudyDiseases list") @Fetch(value = org.hibernate.annotations.FetchMode.SUBSELECT) // it is pretty lame that this is necessary public List<CtepStudyDisease> getCtepStudyDiseases() { return ctepStudyDiseases; }
From source file:gov.nih.nci.cabig.caaers.domain.Study.java
License:BSD License
/** * Gets the meddra study diseases.//from ww w.j a va 2s.c om * * @return the meddra study diseases */ @OneToMany(orphanRemoval = true) @JoinColumn(name = "study_id", nullable = false) @Cascade(value = { CascadeType.ALL }) @Where(clause = "term_type = 'meddra'") @OrderBy @UniqueObjectInCollection(message = "Duplicates found in MeddraStudyDiseases list") @Fetch(value = org.hibernate.annotations.FetchMode.SUBSELECT) // it is pretty lame that this is necessary public List<MeddraStudyDisease> getMeddraStudyDiseases() { return meddraStudyDiseases; }