Example usage for org.hibernate.annotations CascadeType LOCK

List of usage examples for org.hibernate.annotations CascadeType LOCK

Introduction

In this page you can find the example usage for org.hibernate.annotations CascadeType LOCK.

Prototype

CascadeType LOCK

To view the source code for org.hibernate.annotations CascadeType LOCK.

Click Source Link

Document

Corresponds to the Hibernate native LOCK action.

Usage

From source file:edu.duke.cabig.c3pr.domain.EndPoint.java

License:BSD License

/**
 * Gets the end point property.//from w  w w .ja v  a  2s  . c o  m
 * 
 * @return the end point property
 */
@ManyToOne
@JoinColumn(name = "ENDPOINT_PROP_ID")
@Cascade(value = { CascadeType.LOCK })
public EndPointConnectionProperty getEndPointProperty() {
    return endPointProperty;
}

From source file:edu.duke.cabig.c3pr.domain.HealthcareSite.java

License:BSD License

/**
 * Gets the participants./*www .  ja v  a2  s  . co  m*/
 *
 * @return the participants
 */
@ManyToMany(mappedBy = "healthcareSites")
@Cascade(value = { CascadeType.LOCK })
public List<Participant> getParticipants() {
    return participants;
}

From source file:edu.duke.cabig.c3pr.domain.HealthcareSiteInvestigator.java

License:BSD License

/**
 * Gets the study investigators.//from w  w w .  j ava 2  s.  c  om
 * 
 * @return the study investigators
 */
@OneToMany(mappedBy = "healthcareSiteInvestigator", fetch = FetchType.LAZY)
@Cascade(value = { CascadeType.LOCK })
public List<StudyInvestigator> getStudyInvestigators() {
    return studyInvestigators;
}

From source file:edu.duke.cabig.c3pr.domain.Investigator.java

License:BSD License

/**
 * Gets the user based recipient.//  www. j ava  2  s  .c om
 * 
 * @return the user based recipient
 */
@OneToMany
@Cascade(value = { CascadeType.LOCK })
@JoinColumn(name = "investigators_id")
public List<UserBasedRecipient> getUserBasedRecipients() {
    return userBasedRecipients;
}

From source file:edu.duke.cabig.c3pr.domain.OffEpochReason.java

License:BSD License

@ManyToOne
@JoinColumn(name = "reason_id")
@Cascade({ CascadeType.LOCK })
public Reason getReason() {
    return reason;
}

From source file:edu.duke.cabig.c3pr.domain.Participant.java

License:BSD License

@OneToMany(mappedBy = "masterSubject")
@Cascade(value = { CascadeType.LOCK })
@OrderBy("id")//from w w w  .  j av  a 2  s  .  c om
@Where(clause = "retired_indicator  = 'false'")
public List<StudySubjectDemographics> getStudySubjectDemographics() {
    return studySubjectDemographics;
}

From source file:edu.duke.cabig.c3pr.domain.Participant.java

License:BSD License

/**
 * Gets the healthcare sites.//from  www. java  2  s  . co  m
 * 
 * @return the healthcare sites
 */
@ManyToMany
@Cascade(value = { CascadeType.LOCK })
@JoinTable(name = "prt_org_associations", joinColumns = @JoinColumn(name = "prt_id"), inverseJoinColumns = @JoinColumn(name = "org_id"))
public List<HealthcareSite> getHealthcareSites() {
    return healthcareSites;
}

From source file:edu.duke.cabig.c3pr.domain.PermissibleStudySubjectRegistryStatus.java

License:BSD License

@ManyToOne
@Cascade(value = { CascadeType.LOCK })
@JoinColumn(name = "registry_st_id", nullable = false)
public RegistryStatus getRegistryStatus() {
    return registryStatus;
}

From source file:edu.duke.cabig.c3pr.domain.PersonUser.java

License:BSD License

/**
 * Gets the user based recipient./*from  ww w  . j  ava2 s  . co  m*/
 * 
 * @return the user based recipient
 */
@OneToMany
@Cascade(value = { CascadeType.LOCK })
@JoinColumn(name = "research_staff_id")
public List<UserBasedRecipient> getUserBasedRecipients() {
    return userBasedRecipients;
}

From source file:edu.duke.cabig.c3pr.domain.PlannedNotification.java

License:BSD License

/**
 * Gets the healthcare site.//from  ww w. j  a  v a2s.c o  m
 * 
 * @return the healthcare site
 */
@ManyToOne
@JoinColumn(name = "organizations_id")
@Cascade(value = CascadeType.LOCK)
@Where(clause = "retired_indicator  = 'false'")
public HealthcareSite getHealthcareSite() {
    return healthcareSite;
}