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.InvestigatorGroup.java
License:BSD License
/** * Gets the site investigator group affiliations internal. * // w ww.java 2 s. com * @return the site investigator group affiliations internal */ @OneToMany(mappedBy = "investigatorGroup", fetch = FetchType.LAZY, orphanRemoval = true) @Cascade(value = { CascadeType.ALL }) public List<SiteInvestigatorGroupAffiliation> getSiteInvestigatorGroupAffiliationsInternal() { return lazyListHelper.getInternalList(SiteInvestigatorGroupAffiliation.class); }
From source file:edu.duke.cabig.c3pr.domain.Organization.java
License:BSD License
@OneToMany(orphanRemoval = true) @Cascade(value = { CascadeType.ALL }) @JoinColumn(name = "ORG_ID") @OrderBy("id")/*from w w w . j a v a 2s.c o m*/ public List<ContactMechanism> getContactMechanisms() { return contactMechanisms; }
From source file:edu.duke.cabig.c3pr.domain.Organization.java
License:BSD License
/** * Gets the identifiers assigned TO the organization. * * @return the identifiers/*w ww. j a v a 2 s . c o m*/ */ @OneToMany(fetch = FetchType.LAZY, orphanRemoval = true) @Cascade({ CascadeType.MERGE, CascadeType.ALL }) @JoinColumn(name = "ORG_ID") @Where(clause = "retired_indicator = 'false'") @OrderBy public List<Identifier> getIdentifiersAssignedToOrganization() { return identifiersAssignedToOrganization; }
From source file:edu.duke.cabig.c3pr.domain.Organization.java
License:BSD License
@OneToOne(cascade = { javax.persistence.CascadeType.ALL }, optional = false) @JoinColumn(name = "ADDRESS_ID", nullable = false) public Address getAddress() { return address; }
From source file:edu.duke.cabig.c3pr.domain.Organization.java
License:BSD License
@OneToMany(mappedBy = "healthcareSite", fetch = FetchType.LAZY, orphanRemoval = true) @Cascade(value = { CascadeType.ALL }) @Where(clause = "retired_indicator = 'false'") public List<PlannedNotification> getPlannedNotificationsInternal() { return lazyListHelper.getInternalList(PlannedNotification.class); }
From source file:edu.duke.cabig.c3pr.domain.Organization.java
License:BSD License
@OneToOne(cascade = { javax.persistence.CascadeType.ALL }) @JoinColumn(name = "study_endpoint_props_id") public EndPointConnectionProperty getStudyEndPointProperty() { return studyEndPointProperty; }
From source file:edu.duke.cabig.c3pr.domain.Organization.java
License:BSD License
@OneToOne(cascade = { javax.persistence.CascadeType.ALL }) @JoinColumn(name = "reg_endpoint_props_id") public EndPointConnectionProperty getRegistrationEndPointProperty() { return registrationEndPointProperty; }
From source file:edu.duke.cabig.c3pr.domain.Participant.java
License:BSD License
@OneToMany(mappedBy = "primaryParticipant", orphanRemoval = true) @Cascade({ CascadeType.ALL }) @Where(clause = "retired_indicator = 'false'") public List<Relationship> getRelatedToInternal() { return lazyListHelper.getInternalList(Relationship.class); }
From source file:edu.duke.cabig.c3pr.domain.Participant.java
License:BSD License
/** * Gets the identifiers./*w w w. ja v a 2s .co m*/ * * @return the identifiers */ @OneToMany(fetch = FetchType.LAZY, orphanRemoval = true) @Cascade({ CascadeType.ALL }) @JoinColumn(name = "PRT_ID") @Where(clause = "retired_indicator = 'false'") @OrderBy public List<Identifier> getIdentifiers() { return identifiers; }
From source file:edu.duke.cabig.c3pr.domain.Participant.java
License:BSD License
@OneToMany(orphanRemoval = true) @Cascade(value = { CascadeType.ALL }) @JoinColumn(name = "PRT_ID") @OrderBy("id")// w ww .jav a 2 s . c om public Set<ContactMechanism> getContactMechanisms() { return contactMechanisms; }