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.opencustomer.db.vo.system.RoleVO.java

@ManyToMany(fetch = FetchType.EAGER)
@JoinTable(name = "right_role", joinColumns = { @JoinColumn(name = "role_id") }, inverseJoinColumns = {
        @JoinColumn(name = "right_id") })
public Set<RightVO> getRights() {
    return rights;
}

From source file:org.opencustomer.db.vo.system.UserVO.java

@OneToOne(fetch = FetchType.EAGER)
@JoinColumn(name = "person_id")
public PersonVO getPerson() {
    return person;
}

From source file:org.opencustomer.db.vo.system.UserVO.java

@OneToOne(mappedBy = "user", fetch = FetchType.EAGER)
public CalendarVO getCalendar() {
    return calendar;
}

From source file:org.opencustomer.db.vo.system.UserVO.java

@ManyToMany(fetch = FetchType.EAGER)
@JoinTable(name = "user_calendar", joinColumns = { @JoinColumn(name = "user_id") }, inverseJoinColumns = {
        @JoinColumn(name = "calendar_id") })
public Set<CalendarVO> getCalendars() {
    return calendars;
}

From source file:org.opencustomer.db.vo.system.UserVO.java

@ManyToOne(fetch = FetchType.EAGER)
@JoinColumn(name = "profile_id")
@Cascade({ org.hibernate.annotations.CascadeType.ALL, org.hibernate.annotations.CascadeType.DELETE_ORPHAN })
public ProfileVO getProfile() {
    return profile;
}

From source file:org.openhie.openempi.model.AuditEvent.java

@ManyToOne(fetch = FetchType.EAGER)
@JoinColumn(name = "audit_event_type_cd")
public AuditEventType getAuditEventType() {
    return auditEventType;
}

From source file:org.openhie.openempi.model.AuditEvent.java

@ManyToOne(fetch = FetchType.EAGER)
@JoinColumn(name = "ref_person_id", nullable = true)
public Person getRefPerson() {
    return refPerson;
}

From source file:org.openhie.openempi.model.AuditEvent.java

@ManyToOne(fetch = FetchType.EAGER)
@JoinColumn(name = "alt_ref_person_id", nullable = true)
public Person getAltRefPerson() {
    return altRefPerson;
}

From source file:org.openhie.openempi.model.AuditEvent.java

@ManyToOne(fetch = FetchType.EAGER)
@JoinColumn(name = "creator_id", nullable = false)
public User getUserCreatedBy() {
    return userCreatedBy;
}

From source file:org.openhie.openempi.model.Dataset.java

@ManyToOne(fetch = FetchType.EAGER)
@JoinColumn(name = "user_id"/*, nullable = false*/)
public User getOwner() {
    return owner;
}