List of usage examples for org.hibernate.annotations CascadeType LOCK
CascadeType LOCK
To view the source code for org.hibernate.annotations CascadeType LOCK.
Click Source Link
From source file:edu.duke.cabig.c3pr.domain.Reason.java
License:BSD License
@ManyToOne @Cascade(value = { CascadeType.LOCK }) @JoinColumn(name = "parent_id") public Reason getPrimaryReason() { return primaryReason; }
From source file:edu.duke.cabig.c3pr.domain.Recipient.java
License:BSD License
@OneToMany @Cascade(value = { CascadeType.LOCK }) @JoinColumn(name = "recipients_id") @Where(clause = "retired_indicator = 'false'") public List<RecipientScheduledNotification> getRecipientScheduledNotifications() { return recipientScheduledNotifications; }
From source file:edu.duke.cabig.c3pr.domain.RecipientScheduledNotification.java
License:BSD License
/** * Gets the recipient./* w ww.j av a 2 s. c om*/ * * @return the recipient */ @ManyToOne @JoinColumn(name = "recipients_id") @Cascade(value = { CascadeType.LOCK }) public Recipient getRecipient() { return recipient; }
From source file:edu.duke.cabig.c3pr.domain.RecipientScheduledNotification.java
License:BSD License
/** * Gets the scheduled notification.// ww w .j av a2 s . com * * @return the scheduled notification */ @ManyToOne @Cascade(value = { CascadeType.LOCK }) @JoinColumn(name = "schld_notfns_id", nullable = false) @OrderBy(clause = "date_sent desc") public ScheduledNotification getScheduledNotification() { return scheduledNotification; }
From source file:edu.duke.cabig.c3pr.domain.Relationship.java
License:BSD License
@ManyToOne @JoinColumn(name = "pri_prt_id") @Cascade(CascadeType.LOCK) public Participant getPrimaryParticipant() { return primaryParticipant; }
From source file:edu.duke.cabig.c3pr.domain.Relationship.java
License:BSD License
@ManyToOne @JoinColumn(name = "sec_prt_id") @Cascade(CascadeType.LOCK) public Participant getSecondaryParticipant() { return secondaryParticipant; }
From source file:edu.duke.cabig.c3pr.domain.ScheduledNotification.java
License:BSD License
/** * Gets the study organization.//from w w w. java 2 s . c o m * * @return the study organization */ @OneToOne @Cascade(value = { CascadeType.LOCK }) @JoinColumn(name = "study_org_id") public StudyOrganization getStudyOrganization() { return studyOrganization; }
From source file:edu.duke.cabig.c3pr.domain.SiteStatusHistory.java
License:BSD License
@ManyToOne @JoinColumn(name = "sto_id", nullable = false) @Cascade({ CascadeType.LOCK }) public StudySite getStudySite() { return studySite; }
From source file:edu.duke.cabig.c3pr.domain.Study.java
License:BSD License
@OneToMany(mappedBy = "companionStudy") @Cascade(value = { CascadeType.LOCK }) @Where(clause = "retired_indicator = 'false'") public List<CompanionStudyAssociation> getParentStudyAssociations() { return parentStudyAssociations; }
From source file:edu.duke.cabig.c3pr.domain.StudyDisease.java
License:BSD License
/** * Gets the disease term.//from w ww . j a v a 2 s. c o m * * @return the disease term */ @ManyToOne @JoinColumn(name = "disease_term_id") @Cascade(value = { CascadeType.LOCK }) public DiseaseTerm getDiseaseTerm() { return diseaseTerm; }