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.infinities.keystone4j.model.catalog.Endpoint.java

@XmlTransient
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "REGIONID", nullable = true)
public Region getRegion() {
    return region;
}

From source file:com.infinities.skyport.entity.Role.java

@XmlTransient
@OneToMany(fetch = FetchType.LAZY, mappedBy = "role", cascade = CascadeType.REMOVE)
public Set<UserRole> getUserRoles() {
    return this.userRoles;
}

From source file:com.pansky.integration.common.persistence.DataEntity.java

@JsonIgnore
@ManyToOne(fetch = FetchType.LAZY)
@NotFound(action = NotFoundAction.IGNORE)
@JoinColumn(name = "update_by")
public User getUpdateBy() {
    return updateBy;
}

From source file:com.infinities.skyport.entity.TaskEventLog.java

@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "EVENTID")
public TaskEvent getTaskEvent() {
    return this.taskEvent;
}

From source file:com.sccl.attech.modules.sys.entity.Area.java

@OneToMany(mappedBy = "area", fetch = FetchType.LAZY)
@Where(clause = "del_flag='" + DEL_FLAG_NORMAL + "'")
@OrderBy(value = "code")
@Fetch(FetchMode.SUBSELECT)//from   w  ww.  ja  v a  2s .c  o m
@NotFound(action = NotFoundAction.IGNORE)
@JsonIgnore
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public List<Office> getOfficeList() {
    return officeList;
}

From source file:com.hmsinc.epicenter.model.attribute.Gender.java

@OneToMany(cascade = { CascadeType.ALL }, fetch = FetchType.LAZY, mappedBy = "gender")
public Set<PatientDetail> getPatientDetails() {
    return this.patientDetails;
}

From source file:com.impetus.ankush.common.domain.Cluster.java

/**
 * @return the haServices// ww  w  .j a  va2s .  com
 */
@OneToMany(mappedBy = CLUSTER_ID, fetch = FetchType.LAZY, cascade = CascadeType.REMOVE)
@JsonIgnore
public List<Service> getServices() {
    return services;
}

From source file:fr.mael.microrss.domain.User.java

@OneToMany(fetch = FetchType.LAZY, mappedBy = "user")
public Set<Category> getCategories() {
    return this.categories;
}

From source file:com.infinities.skyport.entity.PermissionOperation.java

@JsonSerialize(using = BasicSelfRecursiveSerializer.class)
@JsonView(Views.Full.class)
@XmlElement(name = "permission")
@OneToMany(fetch = FetchType.LAZY, mappedBy = "parent", cascade = CascadeType.REMOVE)
public Set<PermissionOperation> getPermissionOperations() {
    return permissionOperations;
}

From source file:com.infinities.skyport.entity.TaskEvent.java

@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "USERID")
public User getUser() {
    return this.user;
}