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.openhie.openempi.model.IdentifierDomain.java

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

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

@ManyToOne(fetch = FetchType.EAGER)
@JoinColumn(name = "gender_cd")
@XmlElement
public Gender getGender() {
    return this.gender;
}

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

@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER, mappedBy = "person")
@XmlElement//from  w w  w  . j  a  va2 s . co m
public Set<PersonIdentifier> getPersonIdentifiers() {
    return this.personIdentifiers;
}

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

@ManyToOne(fetch = FetchType.EAGER)
@JoinColumn(name = "identifier_domain_id", nullable = false)
@XmlElement/*ww  w  .  j  a v a 2  s. c  om*/
public IdentifierDomain getIdentifierDomain() {
    return this.identifierDomain;
}

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

@ManyToOne(fetch = FetchType.EAGER)
@JoinColumn(name = "creator_id", nullable = false)
@XmlElement/*from   w ww  .  j  av a  2s  .  c  om*/
public User getUserCreatedBy() {
    return this.userCreatedBy;
}

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

@ManyToOne(fetch = FetchType.EAGER)
@JoinColumn(name = "voided_by_id")
@XmlElement
public User getUserVoidedBy() {
    return this.userVoidedBy;
}

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

@ManyToOne(fetch = FetchType.EAGER)
@JoinColumn(name = "person_id", nullable = false)
public Person getPerson() {
    return this.person;
}

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

@ManyToOne(fetch = FetchType.EAGER)
@JoinColumn(name = "lh_person_id", nullable = false)
@XmlElement// w  ww.java  2  s . c o  m
public Person getPersonLeft() {
    return this.personLeft;
}

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

@ManyToOne(fetch = FetchType.EAGER)
@JoinColumn(name = "rh_person_id", nullable = false)
@XmlElement/*from  w w  w .j a va 2 s  .  c om*/
public Person getPersonRight() {
    return this.personRight;
}

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

@ManyToOne(fetch = FetchType.EAGER)
@JoinColumn(name = "link_source_id", nullable = false)
@XmlElement
public LinkSource getLinkSource() {
    return linkSource;
}