Example usage for javax.persistence FetchType EAGER

List of usage examples for javax.persistence FetchType EAGER

Introduction

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

Prototype

FetchType EAGER

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

Click Source Link

Document

Defines that data must be eagerly fetched.

Usage

From source file:ch.systemsx.cisd.openbis.generic.shared.dto.RoleAssignmentPE.java

@ManyToOne(fetch = FetchType.EAGER)
@JoinColumn(name = ColumnNames.PERSON_GRANTEE_COLUMN, updatable = false)
@Private
public final PersonPE getPersonInternal() {
    return person;
}

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

/**
 * Gets the coded primary disease site.// w  ww.jav a  2 s .  com
 *
 * @return the coded primary disease site
 */
@OneToOne(fetch = FetchType.EAGER)
@JoinColumn(name = "coded_primary_disease_site_id")
@Cascade(value = { CascadeType.MERGE, CascadeType.LOCK, CascadeType.REFRESH })
public AnatomicSite getCodedPrimaryDiseaseSite() {
    return codedPrimaryDiseaseSite;
}

From source file:org.bwgz.swim.openlane.data.model.Event.java

@ManyToOne(fetch = FetchType.EAGER)
public Meet getMeet() {
    return meet;
}

From source file:mx.ecosur.multigame.manantiales.entity.CheckCondition.java

/**
 * @return the violators/*w  w  w.ja v  a 2 s  .  co  m*/
 */
@ManyToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER)
public Set<ManantialesFicha> getViolators() {
    if (violators == null)
        violators = new HashSet<ManantialesFicha>();
    return violators;
}

From source file:org.mitre.oauth2.model.SavedUserAuthentication.java

@Override
@ElementCollection(fetch = FetchType.EAGER)
@CollectionTable(name = "saved_user_auth_authority", joinColumns = @JoinColumn(name = "owner_id"))
@Convert(converter = SimpleGrantedAuthorityStringConverter.class)
@Column(name = "authority")
public Collection<? extends GrantedAuthority> getAuthorities() {
    return authorities;
}

From source file:org.bwgz.swim.openlane.data.model.Event.java

@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER)
public Set<OpenLane> getOpenLanes() {
    return openLanes;
}

From source file:com.dhenton9000.birt.persistence.entities.OrderDetails.java

/**
 * @return the productCode/*from  w  w  w  .j  a  va2s. c  o  m*/
 */

@OneToOne(fetch = FetchType.EAGER)
@JoinColumn(name = "PRODUCTCODE", nullable = false)
@JsonManagedReference
@Basic(optional = false)
public Products getProducts() {
    return this.product;
}

From source file:gt.entities.Forum.java

@ManyToOne(fetch = FetchType.EAGER)
@JoinColumn(name = "idUserProfile", referencedColumnName = "idUserProfile", nullable = false)
public UserProfile getUserProfile() {
    return userProfile;
}

From source file:com.vallourec.zebra.modules.sys.entity.User.java

@ManyToMany(fetch = FetchType.EAGER)
@JoinTable(name = "sys_user_role", joinColumns = { @JoinColumn(name = "user_id") }, inverseJoinColumns = {
        @JoinColumn(name = "role_id") })
@Where(clause = DEL_NORMAL_CLAUSE)/*from   w  w  w  .  jav  a  2s  . c o m*/
@OrderBy("name")
@Fetch(FetchMode.SUBSELECT)
@NotFound(action = NotFoundAction.IGNORE)
@JsonIgnore
public List<Role> getRoleList() {
    return roleList;
}

From source file:ch.systemsx.cisd.openbis.generic.shared.dto.GroupPE.java

@ManyToOne(fetch = FetchType.EAGER)
@NotNull(message = ValidationMessages.DATABASE_INSTANCE_NOT_NULL_MESSAGE)
@JoinColumn(name = ColumnNames.DATABASE_INSTANCE_COLUMN, updatable = false)
public final DatabaseInstancePE getDatabaseInstance() {
    return databaseInstance;
}