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:org.projectforge.business.fibu.ProjektDO.java

@ManyToOne(fetch = FetchType.EAGER)
@JoinColumn(name = "kunde_id")
public KundeDO getKunde() {
    return kunde;
}

From source file:org.projectforge.business.humanresources.HRPlanningEntryDO.java

@ManyToOne(fetch = FetchType.EAGER)
@JoinColumn(name = "planning_fk", nullable = false)
public HRPlanningDO getPlanning() {
    return planning;
}

From source file:org.projectforge.business.humanresources.HRPlanningEntryDO.java

@ManyToOne(fetch = FetchType.EAGER)
@JoinColumn(name = "projekt_fk")
public ProjektDO getProjekt() {
    return projekt;
}

From source file:org.projectforge.business.teamcal.event.model.TeamEventAttendeeDO.java

/**
 * Is set if the attendee is a ProjectForge user.
 * /*  w ww.  ja va  2  s.  c o  m*/
 * @return the userId
 */
@ManyToOne(fetch = FetchType.EAGER)
@JoinColumn(name = "user_id")
public PFUserDO getUser() {
    return user;
}

From source file:org.projectforge.business.teamcal.event.model.TeamEventDO.java

/**
 * @return the attendees//w  ww . ja  v a  2  s  .  c o  m
 */
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER)
@JoinColumn(name = "team_event_fk")
public Set<TeamEventAttendeeDO> getAttendees() {
    return attendees;
}

From source file:org.projectforge.business.teamcal.event.model.TeamEventDO.java

/**
 * @return the attachments/*from  w w  w  . j a  v a2s.c om*/
 */
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER)
@JoinColumn(name = "team_event_fk2")
public Set<TeamEventAttachmentDO> getAttachments() {
    return attachments;
}

From source file:org.projectforge.business.timesheet.TimesheetDO.java

@ManyToOne(fetch = FetchType.EAGER)
@JoinColumn(name = "kost2_id", nullable = true)
public Kost2DO getKost2() {
    return kost2;
}

From source file:org.projectforge.continuousdb.demo.entities.GroupDO.java

@ManyToMany(targetEntity = UserDO.class, cascade = { CascadeType.PERSIST,
        CascadeType.MERGE }, fetch = FetchType.EAGER)
@JoinTable(name = "T_GROUP_USER", joinColumns = @JoinColumn(name = "GROUP_ID"), inverseJoinColumns = @JoinColumn(name = "USER_ID"))
public Set<UserDO> getAssignedUsers() {
    return assignedUsers;
}

From source file:org.projectforge.continuousdb.demo.entities.UserDO.java

@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER, orphanRemoval = true, mappedBy = "user")
public Set<UserRightDO> getRights() {
    return this.rights;
}

From source file:org.projectforge.fibu.AuftragDO.java

/**
 * Get the position entries for this object.
 *///from   ww w . java2  s .  co m
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER, orphanRemoval = true, mappedBy = "auftrag")
@IndexColumn(name = "number", base = 1)
public List<AuftragsPositionDO> getPositionen() {
    return this.positionen;
}