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:org.dspace.orm.entity.Eperson.java

@ManyToMany(fetch = FetchType.LAZY, cascade = CascadeType.DETACH)
@JoinTable(name = "tasklistitem", joinColumns = {
        @JoinColumn(name = "eperson_id", nullable = false) }, inverseJoinColumns = {
                @JoinColumn(name = "workflow_id", nullable = false) })
public List<WorkFlowItem> getWorkFlowItems() {
    return workFlowItems;
}

From source file:com.esoft.jdp2p.borrower.model.BorrowerAuthentication.java

@OneToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "work_certificate")
public AuthenticationMaterials getWorkCertificate() {
    return this.workCertificate;
}

From source file:edu.ku.brc.specify.datamodel.SpAppResourceDir.java

/**
 * @return/*from  w  w  w.ja v a 2 s . c  o  m*/
 */
@ManyToOne(cascade = {}, fetch = FetchType.LAZY)
@JoinColumn(name = "SpecifyUserID", unique = false, nullable = true, insertable = true, updatable = true)
public SpecifyUser getSpecifyUser() {
    return this.specifyUser;
}

From source file:gov.nih.nci.caarray.domain.project.Project.java

/**
 * Gets the files./* w w w.j  a v a  2s  . c  om*/
 *
 * @return the files
 */
@OneToMany(mappedBy = "project", fetch = FetchType.LAZY)
@Sort(type = SortType.NATURAL)
@Where(clause = "(status = 'IMPORTED' or status = 'IMPORTED_NOT_PARSED')")
@Filter(name = Experiment.SECURITY_FILTER_NAME, condition = Experiment.FILES_FILTER)
private SortedSet<CaArrayFile> getImportedFileSet() {
    return this.importedFiles;
}

From source file:edu.ku.brc.specify.datamodel.DataModelObjBase.java

/**
 * @return the createdByAgent//ww w .jav a 2  s  .c o  m
 */
@ManyToOne(cascade = {}, fetch = FetchType.LAZY)
@JoinColumn(name = "CreatedByAgentID", updatable = false)
public Agent getCreatedByAgent() {
    return createdByAgent;
}

From source file:edu.ku.brc.specify.datamodel.SpReport.java

/**
 * @return the appResource/*from  w  ww. j a v a  2 s  .c  o m*/
 */
@ManyToOne(cascade = {}, fetch = FetchType.LAZY)
@JoinColumn(name = "AppResourceID", unique = false, nullable = false, insertable = true, updatable = true)
public SpAppResource getAppResource() {
    return appResource;
}

From source file:edu.ku.brc.specify.datamodel.SpPrincipal.java

@ManyToOne(cascade = {}, fetch = FetchType.LAZY)
@JoinColumn(name = "userGroupScopeID", unique = false, nullable = true, insertable = true, updatable = true)
public UserGroupScope getScope() {
    return scope;
}

From source file:com.hmsinc.epicenter.model.provider.DataConnection.java

@ManyToMany(cascade = { CascadeType.PERSIST,
        CascadeType.MERGE }, fetch = FetchType.LAZY, targetEntity = Facility.class)
@JoinTable(name = "DATA_CONN_FACILITY", joinColumns = {
        @JoinColumn(name = "ID_DATA_CONNECTION") }, inverseJoinColumns = { @JoinColumn(name = "ID_FACILITY") })
@Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE)
public Set<Facility> getFacilities() {
    return this.facilities;
}

From source file:com.eryansky.entity.base.User.java

@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "DEFAULT_ORGANID")
public Organ getDefaultOrgan() {
    return defaultOrgan;
}

From source file:com.marand.thinkmed.medications.model.impl.MedicationImpl.java

@Override
@OneToMany(targetEntity = MedicationTypeImpl.class, mappedBy = "medication", fetch = FetchType.LAZY)
public Set<MedicationType> getTypes() {
    return types;
}