List of usage examples for javax.persistence FetchType LAZY
FetchType LAZY
To view the source code for javax.persistence FetchType LAZY.
Click Source Link
From source file:com.hmsinc.epicenter.model.surveillance.SurveillanceSet.java
/** * @return the classifications//from w w w.ja v a2s . c o m */ @ManyToMany(cascade = { CascadeType.PERSIST, CascadeType.MERGE }, fetch = FetchType.LAZY, targetEntity = Classification.class) @JoinTable(name = "SURVEILLANCE_SET_CLASSI", joinColumns = { @JoinColumn(name = "ID_SURVEILLANCE_SET") }, inverseJoinColumns = { @JoinColumn(name = "ID_CLASSIFICATION") }) @ForeignKey(name = "FK_SURVEILLANCE_SET_CLASSI_1", inverseName = "FK_SURVEILLANCE_SET_CLASSI_2") public Set<Classification> getClassifications() { return classifications; }
From source file:com.hmsinc.epicenter.model.surveillance.SurveillanceTask.java
/** * @return the geography/*from w w w .j a v a 2 s . c o m*/ */ @ManyToOne(cascade = { CascadeType.PERSIST, CascadeType.MERGE }, fetch = FetchType.LAZY) @JoinColumn(name = "ID_GEOGRAPHY", unique = false, nullable = false, insertable = true, updatable = true) @ForeignKey(name = "FK_SURVEILLANCE_TASK_3") @Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE) public Geography getGeography() { return geography; }
From source file:com.netxforge.oss2.model.DataLinkInterface.java
@ManyToOne(optional = false, fetch = FetchType.LAZY) @JoinColumn(name = "nodeId") @XmlTransient public OnmsNode getNode() { return m_node; }
From source file:com.hmsinc.epicenter.model.health.PatientDetail.java
@ManyToOne(cascade = { CascadeType.ALL }, fetch = FetchType.LAZY) @JoinColumn(name = "ID_PATIENT", unique = false, nullable = false, insertable = true, updatable = true) @org.hibernate.annotations.ForeignKey(name = "FK_PATIENT_DETAIL_1") public Patient getPatient() { return this.patient; }
From source file:com.hmsinc.epicenter.model.workflow.WorkflowTransition.java
/** * @return the toState/* w w w. j av a 2 s.co m*/ */ @ManyToOne(cascade = { CascadeType.ALL }, fetch = FetchType.LAZY) @JoinColumn(name = "ID_STATE_TO", unique = false, nullable = false, insertable = true, updatable = true) @org.hibernate.annotations.ForeignKey(name = "FK_WORKFLOW_TRANSITION_2") public WorkflowState getToState() { return toState; }
From source file:edu.ku.brc.specify.datamodel.AccessionAgent.java
/** * /*from w ww .j a v a2 s.c o m*/ */ @ManyToOne(cascade = {}, fetch = FetchType.LAZY) @JoinColumn(name = "RepositoryAgreementID", unique = false, nullable = true, insertable = true, updatable = true) public RepositoryAgreement getRepositoryAgreement() { return this.repositoryAgreement; }
From source file:org.dspace.orm.entity.Community.java
@ManyToOne(fetch = FetchType.LAZY) @JoinColumn(name = "admin", nullable = false) public EpersonGroup getAdmin() { return admin; }
From source file:com.infinities.skyport.entity.TaskEvent.java
@XmlTransient @OneToMany(fetch = FetchType.LAZY, mappedBy = "taskEvent", cascade = CascadeType.REMOVE) @OrderBy("id DESC") public Set<TaskEventLog> getTaskEventLogs() { return this.taskEventLogs; }
From source file:com.dp2345.entity.ProductCategory.java
/** * ? * * @return */ @ManyToOne(fetch = FetchType.LAZY) public ProductCategory getParent() { return parent; }
From source file:ch.systemsx.cisd.openbis.generic.shared.dto.AuthorizationGroupPE.java
@OneToMany(fetch = FetchType.LAZY, mappedBy = "authorizationGroupInternal", cascade = CascadeType.ALL) private Set<RoleAssignmentPE> getRoleAssignmentsInternal() { return roleAssignments; }