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.eclipse.jubula.client.core.model.NodePO.java

/**
 * /*from ww w  .  j av a  2s  .com*/
 * Access method for the m_nodeList property.
 * only to use for Persistence (JPA / EclipseLink)
 * 
 * @return the current value of the m_nodeList property
 */
@ManyToMany(fetch = FetchType.EAGER, cascade = CascadeType.ALL, targetEntity = NodePO.class)
@JoinTable(name = "NODE_LIST", joinColumns = @JoinColumn(name = "PARENT"), inverseJoinColumns = @JoinColumn(name = "CHILD"))
@OrderColumn(name = "IDX")
@BatchFetch(value = BatchFetchType.JOIN)
List<INodePO> getHbmNodeList() {
    return m_nodeList;
}

From source file:org.eclipse.jubula.client.core.model.ObjectMappingPO.java

/**
 *  /*from w  ww.j a  v  a2 s.  c o  m*/
 * {@inheritDoc}
 */
@OneToOne(targetEntity = ObjectMappingCategoryPO.class, cascade = CascadeType.ALL, fetch = FetchType.EAGER, optional = false)
@BatchFetch(value = BatchFetchType.JOIN)
public IObjectMappingCategoryPO getMappedCategory() {
    clearMappingsCache(); // may be changed outside of class
    return m_mappedCategory;
}

From source file:org.eclipse.jubula.client.core.model.ObjectMappingPO.java

/**
 *  /*ww w  .  ja v a  2 s .  co  m*/
 * {@inheritDoc}
 */
@OneToOne(targetEntity = ObjectMappingCategoryPO.class, cascade = CascadeType.ALL, fetch = FetchType.EAGER, optional = false)
@BatchFetch(value = BatchFetchType.JOIN)
public IObjectMappingCategoryPO getUnmappedLogicalCategory() {
    clearMappingsCache(); // may be changed outside of class
    return m_unmappedLogicalCategory;
}

From source file:org.eclipse.jubula.client.core.model.ObjectMappingPO.java

/**
 *  /*  w w w. j  a  v  a2s  . c o m*/
 * {@inheritDoc}
 */
@OneToOne(targetEntity = ObjectMappingCategoryPO.class, cascade = CascadeType.ALL, fetch = FetchType.EAGER, optional = false)
@BatchFetch(value = BatchFetchType.JOIN)
public IObjectMappingCategoryPO getUnmappedTechnicalCategory() {
    clearMappingsCache(); // may be changed outside of class
    return m_unmappedTechnicalCategory;
}

From source file:org.eclipse.jubula.client.core.model.ParamNodePO.java

/**
 * /*from  w  w w  .  j  av  a2s  .c  om*/
 * @return the object responsible for maintaining the receiver's parameter
 *         interface as well as test data.
 */
@ManyToOne(cascade = CascadeType.ALL, targetEntity = TestDataCubePO.class, fetch = FetchType.EAGER)
@JoinColumn(name = "FK_PARAM_INTERFACE", unique = true)
private TestDataCubePO getParameterInterface() {
    return m_parameterInterface;
}

From source file:org.eclipse.jubula.client.core.model.ProjectPO.java

/**
 * This method is intended for use by the persistence layer and should do 
 * nothing other than return the properties.
 * //  www.  ja  va 2 s .c  o m
 * @return Returns the project properties.
 */
@OneToOne(cascade = CascadeType.ALL, fetch = FetchType.EAGER)
@JoinColumn(name = "PROJECT_PROPERTIES", unique = true)
public ProjectPropertiesPO getProperties() {
    return m_projectProperties;
}

From source file:org.eclipse.jubula.client.core.model.ProjectPropertiesPO.java

/**
 * only for Persistence (JPA / EclipseLink) !!!
 * please use the languageHelper to manage languagelist
 * /*from ww w .ja  v a  2s  .  com*/
 * @return Returns the languageList.
 */
@ElementCollection(fetch = FetchType.EAGER)
@CollectionTable(name = "PROJ_LANGUAGES")
@Column(name = "LANGUAGE")
@OrderBy
private Set<String> getProjectLanguageList() {
    return m_projectLanguageList;
}

From source file:org.eclipse.jubula.client.core.model.ProjectPropertiesPO.java

/**
 * only for Persistence (JPA / EclipseLink)
 * /*from   w  w  w  .j  a v  a  2 s.  co  m*/
 * @return Returns the usedProjects set.
 */
@OneToMany(cascade = CascadeType.ALL, orphanRemoval = true, targetEntity = ReusedProjectPO.class, fetch = FetchType.EAGER)
@JoinColumn(name = "FK_PROJ_PROPERTIES")
private Set<IReusedProjectPO> getHbmUsedProjects() {
    return m_usedProjects;
}

From source file:org.eclipse.jubula.client.core.model.ProjectPropertiesPO.java

/**
 * {@inheritDoc}/*w  ww.  j  av a2s.c om*/
 */
@OneToOne(cascade = CascadeType.ALL, fetch = FetchType.EAGER, targetEntity = CheckConfContPO.class)
@JoinColumn(name = "CHECK_CONF_CONT", unique = true)
public ICheckConfContPO getCheckConfCont() {
    return m_checkConfCont;
}

From source file:org.eclipse.jubula.client.core.model.TDManagerPO.java

/**
 * Only use this method for internal purposes!</b>
 * /*from w ww. j  a v a  2 s  . c om*/
 * @return Returns the dataTable.
 */
@OneToMany(cascade = CascadeType.ALL, orphanRemoval = true, targetEntity = DataSetPO.class, fetch = FetchType.EAGER)
@OrderColumn(name = "IDX")
@BatchFetch(value = BatchFetchType.JOIN)
public List<IDataSetPO> getDataTable() {
    return m_dataTable;
}