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.SamplePE.java

@ManyToOne(fetch = FetchType.EAGER)
@JoinColumn(name = ColumnNames.GROUP_COLUMN, updatable = true)
@IndexedEmbedded(prefix = SearchFieldConstants.PREFIX_GROUP)
public GroupPE getGroup() {
    return group;
}

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

@ManyToOne(fetch = FetchType.EAGER)
@JoinColumn(name = ColumnNames.STUDY_OBJECT_COLUMN, updatable = false)
public MaterialPE getStudyObject() {
    return studyObject;
}

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

/**
 * @return the responseTypes/*w w w  .  ja v  a 2s .  com*/
 */
@ElementCollection(fetch = FetchType.EAGER)
@CollectionTable(name = "authentication_holder_response_type", joinColumns = @JoinColumn(name = "owner_id"))
@Column(name = "response_type")
public Set<String> getResponseTypes() {
    return responseTypes;
}

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

@ManyToOne(fetch = FetchType.EAGER)
@NotNull(message = ValidationMessages.SAMPLE_TYPE_NOT_NULL_MESSAGE)
@JoinColumn(name = ColumnNames.SAMPLE_TYPE_COLUMN, updatable = false)
@IndexedEmbedded(prefix = SearchFieldConstants.PREFIX_ENTITY_TYPE)
public SampleTypePE getSampleType() {
    return sampleType;
}

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

@ManyToOne(fetch = FetchType.EAGER)
@NotNull(message = ValidationMessages.EXPERIMENT_TYPE_NOT_NULL_MESSAGE)
@JoinColumn(name = ColumnNames.EXPERIMENT_TYPE_COLUMN, updatable = false)
@IndexedEmbedded(prefix = SearchFieldConstants.PREFIX_ENTITY_TYPE)
public ExperimentTypePE getExperimentType() {
    return experimentType;
}

From source file:edu.ku.brc.specify.datamodel.WorkbenchTemplate.java

/**
 * /*w  w  w.  java 2s. c o  m*/
 */
@ManyToOne(cascade = {}, fetch = FetchType.EAGER)
@JoinColumn(name = "SpecifyUserID", nullable = false)
public SpecifyUser getSpecifyUser() {
    return this.specifyUser;
}

From source file:it.infn.ct.futuregateway.apiserver.resources.Task.java

/**
 * Returns the associated application./*from  ww  w.  j  ava2s . c  o m*/
 *
 * @return The id of the application associated with the task
 */
@ManyToOne(optional = false, fetch = FetchType.EAGER)
@JoinColumn(name = "applicationId", referencedColumnName = "id", nullable = false)
public Application getApplicationDetail() {
    return applicationDetail;
}

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

/**
 * @return the extensions/*from w w w  .j  ava  2 s . com*/
 */
@ElementCollection(fetch = FetchType.EAGER)
@CollectionTable(name = "authentication_holder_extension", joinColumns = @JoinColumn(name = "owner_id"))
@Column(name = "val")
@MapKeyColumn(name = "extension")
@Convert(converter = SerializableStringConverter.class)
public Map<String, Serializable> getExtensions() {
    return extensions;
}

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

@ManyToOne(fetch = FetchType.EAGER)
@JoinColumn(name = ColumnNames.INVALIDATION_COLUMN)
public InvalidationPE getInvalidation() {
    return invalidation;
}

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

/**
 * @return the employee//  w w  w .  ja  v a 2  s .  c  om
 */

@ManyToOne(fetch = FetchType.EAGER)
@JoinColumn(name = "SALESREPEMPLOYEENUMBER", insertable = false, updatable = false, nullable = false)
@JsonBackReference
@Basic(optional = false)
public Employees getEmployee() {
    return employee;
}