Example usage for javax.persistence FetchType LAZY

List of usage examples for javax.persistence FetchType LAZY

Introduction

In this page you can find the example usage for javax.persistence FetchType LAZY.

Prototype

FetchType LAZY

To view the source code for javax.persistence FetchType LAZY.

Click Source Link

Document

Defines that data can be lazily fetched.

Usage

From source file:com.sccl.attech.modules.message.entity.AlarmRecords.java

@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "offiec_id")
@NotFound(action = NotFoundAction.IGNORE)
@JsonIgnore/*from  w w w  .  ja v a 2 s. c o  m*/
@NotNull
@ExcelField(title = "", align = 2, sort = 30)
public Office getOffice() {
    return office;
}

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

/**
 * Gets the other meddra term./*from  w  w w .  jav a  2  s . c  o  m*/
 *
 * @return the other meddra term
 */
@OneToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "low_level_term_id")
public LowLevelTerm getOtherMeddraTerm() {
    return otherMeddraTerm;
}

From source file:org.dspace.orm.entity.Bundle.java

@ManyToMany(fetch = FetchType.LAZY, cascade = { CascadeType.ALL })
@JoinTable(name = "bundle2bitstream", joinColumns = { @JoinColumn(name = "bundle_id") }, inverseJoinColumns = {
        @JoinColumn(name = "bitstream_id") })
public List<Bitstream> getBitstreams() {
    return bitstreams;
}

From source file:com.evolveum.midpoint.repo.sql.data.common.container.RExclusion.java

@Id
@ForeignKey(name = "fk_exclusion_owner")
@MapsId("owner")
@ManyToOne(fetch = FetchType.LAZY)
@NotQueryable
public RObject getOwner() {
    return owner;
}

From source file:org.dspace.orm.entity.Bitstream.java

@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "bitstream_format_id", nullable = true)
public BitstreamFormat getFormat() {
    return format;
}

From source file:com.jeefuse.system.security.model.GsysRelRoleFunction.java

/**
 * ------------------------------------------------------------------------
 * gsysFunction//ww w  . j  ava 2s.  c  om
 * ------------------------------------------------------------------------
 * @generated
 */
@JoinColumn(name = "FUNCTION_ID", unique = false, nullable = false, insertable = true, updatable = true)
@ManyToOne(fetch = FetchType.LAZY)
public GsysFunction getGsysFunction() {
    return gsysFunction;
}

From source file:com.jeefuse.system.security.model.GsysRelRoleResource.java

/**
 * ------------------------------------------------------------------------
 * gsysResource//w ww  .  j  av  a  2 s.c  o  m
 * ------------------------------------------------------------------------
 * @generated
 */
@JoinColumn(name = "RESOURCE_ID", unique = false, nullable = false, insertable = true, updatable = true)
@ManyToOne(fetch = FetchType.LAZY)
public GsysResource getGsysResource() {
    return gsysResource;
}

From source file:com.evolveum.midpoint.repo.sql.data.common.container.RCertCaseReference.java

@ForeignKey(name = "fk_acc_cert_case_ref_owner")
@MapsId("owner")//from w w w . j  a v a 2s . c  o m
@ManyToOne(fetch = FetchType.LAZY)
@NotQueryable
public RAccessCertificationCase getOwner() {
    return owner;
}

From source file:com.evolveum.midpoint.repo.sql.data.common.any.RAssignmentExtension.java

@ForeignKey(name = "none")
@MapsId("owner")
@ManyToOne(fetch = FetchType.LAZY)
@NotQueryable
public RAssignment getOwner() {
    return owner;
}

From source file:org.dspace.orm.entity.Community.java

@ManyToMany(fetch = FetchType.LAZY, cascade = CascadeType.DETACH)
@JoinTable(name = "community2community", joinColumns = {
        @JoinColumn(name = "child_comm_id", nullable = false) }, inverseJoinColumns = {
                @JoinColumn(name = "parent_comm_id", nullable = false) })
public List<Community> getParents() {
    return parents;
}