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:gov.nih.nci.cabig.caaers.domain.StudyDeviceINDAssociation.java

License:BSD License

@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "study_device_id")
@Cascade(value = { CascadeType.LOCK })
public StudyDevice getStudyDevice() {
    return studyDevice;
}

From source file:gov.nih.nci.cabig.caaers.domain.StudyDeviceINDAssociation.java

License:BSD License

/**
 * Gets the investigational new drug.// w w  w .j  a  v a2 s.  com
 *
 * @return the investigational new drug
 */
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "ind_id")
@Cascade(value = { org.hibernate.annotations.CascadeType.LOCK })
public InvestigationalNewDrug getInvestigationalNewDrug() {
    return investigationalNewDrug;
}

From source file:gov.nih.nci.cabig.caaers.domain.StudyInterventionExpectedCtcTerm.java

License:BSD License

@ManyToOne
@JoinColumn(name = "term_id")
@Cascade(value = { CascadeType.LOCK, CascadeType.EVICT })
@Override/*  ww w  .jav a  2 s .  c  o  m*/
public CtcTerm getTerm() {
    return super.getTerm();
}

From source file:gov.nih.nci.cabig.caaers.domain.StudyInterventionExpectedMeddraLowLevelTerm.java

License:BSD License

@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "term_id")
@Cascade(value = { CascadeType.LOCK })
@Override/* w ww  .ja  va 2 s.  co m*/
public LowLevelTerm getTerm() {
    return super.getTerm();
}

From source file:gov.nih.nci.cabig.caaers.domain.StudyOrganization.java

License:BSD License

/**
 * Gets the organization.//from w  w w.jav  a2  s . co  m
 *
 * @return the organization
 */
@ManyToOne
@JoinColumn(name = "site_id", nullable = false)
@Cascade(value = { CascadeType.LOCK })
public Organization getOrganization() {
    return organization;
}

From source file:gov.nih.nci.cabig.caaers.domain.StudyParticipantAssignment.java

License:BSD License

/**
 * Gets the study site.// w  w w.ja v  a 2 s  .  c  om
 *
 * @return the study site
 */
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "study_site_id")
@Cascade({ CascadeType.LOCK })
public StudySite getStudySite() {
    return studySite;
}

From source file:gov.nih.nci.cabig.caaers.domain.StudyParticipantAssignment.java

License:BSD License

/**
 * Gets the participant.//from   w  ww  .  ja va 2 s  . c  o m
 *
 * @return the participant
 */
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "participant_id")
@Cascade({ CascadeType.LOCK })
public Participant getParticipant() {
    return participant;
}

From source file:gov.nih.nci.cabig.caaers.domain.StudyParticipantConcomitantMedication.java

License:BSD License

/**
 * Gets the assignment./* www  .  j a v a 2s  .c  o m*/
 *
 * @return the assignment
 */
@ManyToOne(fetch = FetchType.LAZY)
@Cascade(value = { CascadeType.LOCK })
public StudyParticipantAssignment getAssignment() {
    return assignment;
}

From source file:gov.nih.nci.cabig.caaers.domain.StudyParticipantDiseaseHistory.java

License:BSD License

/**
 * Gets the coded primary disease site.//from   www  . j  a va2  s.com
 *
 * @return the coded primary disease site
 */
@OneToOne
@JoinColumn(name = "coded_primary_disease_site_id")
@Cascade(value = { CascadeType.LOCK })
public AnatomicSite getCodedPrimaryDiseaseSite() {
    return codedPrimaryDiseaseSite;
}

From source file:gov.nih.nci.cabig.caaers.domain.TreatmentInformation.java

License:BSD License

/**
 * Gets the treatment assignment./*from w w w. ja va  2 s. c o  m*/
 *
 * @return the treatment assignment
 */
@OneToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "treatment_assignment_id")
@Cascade(value = { CascadeType.LOCK })
public TreatmentAssignment getTreatmentAssignment() {
    return treatmentAssignment;
}