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:mx.ecosur.multigame.gente.entity.GentePlayer.java

@OneToOne(cascade = { CascadeType.PERSIST, CascadeType.MERGE }, fetch = FetchType.EAGER)
public GentePlayer getPartner() {
    return partner;
}

From source file:de.kaiserpfalzEdv.piracc.backend.db.master.Identity.java

@ManyToOne(fetch = FetchType.EAGER, optional = false)
@JoinColumn(name = "organization_", nullable = false)
@NotNull
public Organization getOrganization() {
    return organization;
}

From source file:com.amediamanager.domain.Video.java

@Column
@ManyToMany(fetch = FetchType.EAGER, cascade = CascadeType.ALL)
@JoinTable(name = "videos_tags", joinColumns = {
        @JoinColumn(name = "videoId", nullable = false) }, inverseJoinColumns = {
                @JoinColumn(name = "tagId", nullable = false) })
public Set<Tag> getTags() {
    return tags;//from  www  .ja  v  a2  s .  co  m
}

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

/**
 * Gets the iND holder.// ww w . j  ava2s  . co  m
 *
 * @return the iND holder
 */
@OneToOne(mappedBy = "investigationalNewDrug", fetch = FetchType.EAGER)
@Cascade({ CascadeType.ALL })
public INDHolder getINDHolder() {
    return iNDHolder;
}

From source file:io.github.davejoyce.dao.composite.model.AppTweet.java

@ManyToOne(fetch = FetchType.EAGER, optional = false)
@JoinColumn(name = "APP_USER_ID", nullable = false)
public AppUser getAppUser() {
    return appUser;
}

From source file:ca.mcgill.cs.swevo.qualyzer.model.Code.java

/**
 * //from   w w  w .  ja va  2 s .c  o m
 * @return
 */
@ElementCollection(fetch = FetchType.EAGER)
@OrderColumn(name = "parents_index")
public List<String> getParents() {
    return fParents;
}

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

/**
 * @return the authentication/*from   w  w  w. j av a2 s  .com*/
 */
@Lob
@Basic(fetch = FetchType.EAGER)
@Column(name = "authentication")
public OAuth2Authentication getAuthentication() {
    return authentication;
}

From source file:com.testing26thjuly_.wmstudio.Table2.java

@JsonIgnoreProperties({ "table2ByMergeFirmId", "table2sForMergeFirmId" })
@ManyToOne(fetch = FetchType.EAGER)
@JoinColumn(name = "`MERGE_FIRM_ID`", referencedColumnName = "`ID`", insertable = true, updatable = true)
public Table2 getTable2ByMergeFirmId() {
    return this.table2ByMergeFirmId;
}

From source file:ca.mcgill.cs.swevo.qualyzer.model.Project.java

/**
 * @return the participants/*from   www.  j a va2 s .  c o m*/
 */
@OneToMany(cascade = { CascadeType.ALL }, fetch = FetchType.EAGER)
@JoinColumn(name = "project_persistenceid", nullable = false)
@OrderColumn(name = "index")
public List<Participant> getParticipants() {
    return fParticipants;
}

From source file:mx.ecosur.multigame.gente.entity.GentePlayer.java

@OneToMany(cascade = { CascadeType.PERSIST, CascadeType.MERGE }, fetch = FetchType.EAGER)
public Set<Tessera> getTesseras() {
    if (tesseras == null)
        tesseras = new HashSet<Tessera>();
    return tesseras;
}