List of usage examples for javax.persistence FetchType EAGER
FetchType EAGER
To view the source code for javax.persistence FetchType EAGER.
Click Source Link
From source file:org.eclipse.jubula.client.core.model.TDManagerPO.java
/** * //from w ww . j av a 2s . com * @return the uniqueIds */ @ElementCollection(fetch = FetchType.EAGER) @CollectionTable(name = "TD_MANAGER_PARAM_ID") @Column(name = "UNIQUE_ID") @OrderColumn(name = "IDX") @JoinColumn(name = "FK_TD_MANAGER") @BatchFetch(value = BatchFetchType.JOIN) public List<String> getUniqueIds() { return m_uniqueIds; }
From source file:org.eclipse.jubula.client.core.model.TestDataCubePO.java
/** * /*w w w. j a v a 2 s. co m*/ * @return parameters instance */ @OneToMany(targetEntity = ParamDescriptionPO.class, fetch = FetchType.EAGER, cascade = CascadeType.ALL, orphanRemoval = true) @JoinColumn(name = "PARAM_NODE") @OrderColumn(name = "IDX_PARAM_NODE") @BatchFetch(value = BatchFetchType.JOIN) protected List<IParamDescriptionPO> getHbmParameterList() { return m_hbmParameterList; }
From source file:org.eclipse.jubula.client.core.model.TestDataCubePO.java
/** * //from w w w.j ava 2 s . c o m * @return Returns the dataManager. */ @OneToOne(cascade = CascadeType.ALL, fetch = FetchType.EAGER, targetEntity = TDManagerPO.class) @JoinColumn(name = "TD_MANAGER") @BatchFetch(value = BatchFetchType.JOIN) protected ITDManager getHbmDataManager() { return m_dataManager; }
From source file:org.eclipse.jubula.client.core.model.TestDataCubePO.java
/** * /* www . j av a 2 s . co m*/ * @return the referenced Data Cube, or <code>null</code> if no Data Cube * is referenced from this node. */ @ManyToOne(targetEntity = TestDataCubePO.class, fetch = FetchType.EAGER) @JoinColumn(name = "REF_DATA_CUBE") @BatchFetch(value = BatchFetchType.JOIN) private IParameterInterfacePO getHbmReferencedDataCube() { return m_referencedDataCube; }
From source file:org.eclipse.jubula.client.core.model.TestDataPO.java
/** * only for Persistence (JPA / EclipseLink) * //from ww w .j av a2 s . com * @return Returns the map. */ @ElementCollection(fetch = FetchType.EAGER) @CollectionTable(name = "LOCALE_TO_TD") @MapKeyColumn(name = "LOCALE") @Column(name = "TD_VALUE", length = MAX_STRING_LENGTH, nullable = false) @JoinColumn(name = "I18N_STR") @BatchFetch(value = BatchFetchType.JOIN) private Map<String, String> getMap() { return m_map; }
From source file:org.fao.geonet.domain.User.java
/** * Get all the user's email addresses./*from w ww . j a v a 2 s. c om*/ * * @return the user's email addresses. */ @ElementCollection(fetch = FetchType.EAGER, targetClass = String.class) @CollectionTable(name = "email") @Column(name = "email") public Set<String> getEmailAddresses() { return _email; }
From source file:org.fao.geonet.domain.User.java
/** * Get all the user's addresses./*from ww w . j av a 2s . c om*/ * * @return all the user's addresses. */ @OneToMany(fetch = FetchType.EAGER, cascade = CascadeType.ALL, orphanRemoval = true) @JoinTable(name = "UserAddress", joinColumns = @JoinColumn(name = "userid"), inverseJoinColumns = { @JoinColumn(name = "addressid", referencedColumnName = "ID", unique = true) }) public Set<Address> getAddresses() { return _addresses; }
From source file:org.jboss.pressgang.ccms.model.LanguageImage.java
@ManyToOne(fetch = FetchType.EAGER, cascade = CascadeType.ALL) @JoinColumn(name = "LocaleID") @NotNull(message = "{languageimage.locale.notBlank}") @Audited(targetAuditMode = RelationTargetAuditMode.NOT_AUDITED) public Locale getLocale() { return locale; }
From source file:org.jiemamy.entity.io.meta.impl.PropertyMetaFactoryImpl.java
private void doFetchType(PropertyMeta propertyMeta, Field field, EntityMeta entityMeta) throws LazyFetchSpecifiedException { Validate.notNull(propertyMeta);/*www.j a v a 2 s . c om*/ Validate.notNull(field); Validate.notNull(entityMeta); final Basic basic = field.getAnnotation(Basic.class); if (basic == null) { propertyMeta.setFetchType(FetchType.EAGER); return; } if (propertyMeta.isId() && basic.fetch() == FetchType.LAZY) { throw new LazyFetchSpecifiedException(entityMeta.getName(), propertyMeta.getName()); } propertyMeta.setFetchType(basic.fetch()); }
From source file:org.jzkit.ServiceDirectory.AttributeSetDBO.java
@CollectionOfElements(fetch = FetchType.EAGER) @org.hibernate.annotations.Cascade({ org.hibernate.annotations.CascadeType.SAVE_UPDATE, org.hibernate.annotations.CascadeType.DELETE_ORPHAN }) @JoinTable(name = "JZ_ATTR_SET_MEMBER", joinColumns = @JoinColumn(name = "ATTR_SET_HEADER_FK")) public Set<AttrValue> getAttrs() { return attrs; }