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.StudyOrganization.java
License:BSD License
/** * Gets the study investigators internal. * * @return the study investigators internal *//*ww w .j a v a2s . co m*/ @OneToMany(mappedBy = "studyOrganization", orphanRemoval = true) @Cascade(value = { CascadeType.ALL }) @UniqueObjectInCollection(message = "Duplicates found in StudyInvestigator list") @Fetch(value = org.hibernate.annotations.FetchMode.SUBSELECT) public List<StudyInvestigator> getStudyInvestigatorsInternal() { return lazyListHelper.getInternalList(StudyInvestigator.class); }
From source file:gov.nih.nci.cabig.caaers.domain.StudyOrganization.java
License:BSD License
/** * Gets the study personnels internal./*from w w w . j a v a 2 s.co m*/ * * @return the study personnels internal */ @OneToMany(mappedBy = "studyOrganization", fetch = FetchType.LAZY, orphanRemoval = true) @Cascade(value = { CascadeType.ALL }) @UniqueObjectInCollection(message = "Duplicates found in StudyPersonnel list") @Fetch(value = org.hibernate.annotations.FetchMode.SUBSELECT) public List<StudyPersonnel> getStudyPersonnelsInternal() { return lazyListHelper.getInternalList(StudyPersonnel.class); }
From source file:gov.nih.nci.cabig.caaers.domain.StudyParticipantAssignment.java
License:BSD License
/** * Gets the reporting periods.//from ww w . j a va 2 s .c om * * @return the reporting periods */ @OneToMany(mappedBy = "assignment", orphanRemoval = true) @OrderBy(clause = "start_date desc") @Cascade(value = { CascadeType.ALL }) @Fetch(value = org.hibernate.annotations.FetchMode.SUBSELECT) public List<AdverseEventReportingPeriod> getReportingPeriods() { return reportingPeriods; }
From source file:gov.nih.nci.cabig.caaers.domain.StudyParticipantAssignment.java
License:BSD License
/** * Gets the pre existing conditions.// w ww.j a va 2s .co m * * @return the pre existing conditions */ @OneToMany(mappedBy = "assignment", orphanRemoval = true) @Cascade(value = { CascadeType.ALL }) @Fetch(value = org.hibernate.annotations.FetchMode.SUBSELECT) public List<StudyParticipantPreExistingCondition> getPreExistingConditions() { return preExistingConditions; }
From source file:gov.nih.nci.cabig.caaers.domain.StudyParticipantAssignment.java
License:BSD License
/** * Gets the concomitant medications./*from w w w.j av a 2s.c om*/ * * @return the concomitant medications */ @OneToMany(mappedBy = "assignment", orphanRemoval = true) @Cascade(value = { CascadeType.ALL }) @Fetch(value = org.hibernate.annotations.FetchMode.SUBSELECT) public List<StudyParticipantConcomitantMedication> getConcomitantMedications() { return concomitantMedications; }
From source file:gov.nih.nci.cabig.caaers.domain.StudyParticipantAssignment.java
License:BSD License
/** * Gets the prior therapies./* w ww .j a v a 2 s. com*/ * * @return the prior therapies */ @OneToMany(mappedBy = "assignment", orphanRemoval = true) @Cascade(value = { CascadeType.ALL }) @Fetch(value = org.hibernate.annotations.FetchMode.SUBSELECT) public List<StudyParticipantPriorTherapy> getPriorTherapies() { return priorTherapies; }
From source file:gov.nih.nci.cabig.caaers.domain.StudyParticipantAssignment.java
License:BSD License
/** * Gets the disease history.// w w w.j a v a2 s .co m * * @return the disease history */ @OneToOne(mappedBy = "assignment", orphanRemoval = true) @Cascade(value = { CascadeType.ALL }) public StudyParticipantDiseaseHistory getDiseaseHistory() { return diseaseHistory; }
From source file:gov.nih.nci.cabig.caaers.domain.StudyParticipantDiseaseHistory.java
License:BSD License
/** * Gets the abstract study disease./*from w w w. j ava2 s . c o m*/ * * @return the abstract study disease */ @OneToOne @JoinColumn(name = "study_disease_id") @Cascade(value = { CascadeType.ALL }) public AbstractStudyDisease getAbstractStudyDisease() { return abstractStudyDisease; }
From source file:gov.nih.nci.cabig.caaers.domain.StudyParticipantDiseaseHistory.java
License:BSD License
/** * Gets the metastatic disease sites internal. * * @return the metastatic disease sites internal *//*from w w w . j a v a 2 s . c o m*/ @OneToMany(orphanRemoval = true) @JoinColumn(name = "spa_disease_history_id") @Cascade(value = { CascadeType.ALL }) @Fetch(value = org.hibernate.annotations.FetchMode.SUBSELECT) public List<StudyParticipantMetastaticDiseaseSite> getMetastaticDiseaseSitesInternal() { return listHelper.getInternalList(StudyParticipantMetastaticDiseaseSite.class); }
From source file:gov.nih.nci.cabig.caaers.domain.StudyParticipantPriorTherapy.java
License:BSD License
/** * Gets the prior therapy agents internal. * * @return the prior therapy agents internal *//* w w w . ja va2 s .c o m*/ @OneToMany(orphanRemoval = true) @JoinColumn(name = "spa_prior_therapy_id", nullable = false) @IndexColumn(name = "list_index") @Cascade(value = { CascadeType.ALL }) @Fetch(value = org.hibernate.annotations.FetchMode.SUBSELECT) protected List<StudyParticipantPriorTherapyAgent> getPriorTherapyAgentsInternal() { return priorTherapyAgents; }