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:mx.ecosur.multigame.gente.entity.GentePlayer.java
@OneToMany(cascade = { CascadeType.PERSIST, CascadeType.MERGE }, fetch = FetchType.EAGER) public Set<Tria> getTrias() { if (trias == null) trias = new HashSet<Tria>(); return trias; }
From source file:ch.systemsx.cisd.openbis.generic.shared.dto.RoleAssignmentPE.java
@ManyToOne(fetch = FetchType.EAGER) @JoinColumn(name = ColumnNames.AUTHORIZATION_GROUP_ID_GRANTEE_COLUMN, updatable = false) @Private//from www . j a va2s . co m public final AuthorizationGroupPE getAuthorizationGroupInternal() { return authorizationGroup; }
From source file:ca.mcgill.cs.swevo.qualyzer.model.Project.java
/** * @return the transcripts//from w ww . j a v a 2 s. c o m */ @OneToMany(cascade = { CascadeType.ALL }, fetch = FetchType.EAGER) @JoinColumn(name = "project_persistenceid", nullable = false) @OrderColumn(name = "index") public List<Transcript> getTranscripts() { return fTranscripts; }
From source file:com.testing26thjuly_.db123testing.SelfRelationTable.java
@JsonIgnoreProperties({ "selfRelationTableByIntCol", "selfRelationTablesForIntCol" }) @ManyToOne(fetch = FetchType.EAGER) @JoinColumn(name = "`Int Col`", referencedColumnName = "`ID`", insertable = true, updatable = true) public SelfRelationTable getSelfRelationTableByIntCol() { return this.selfRelationTableByIntCol; }
From source file:com.cubeia.backoffice.users.entity.User.java
@Fetch(FetchMode.JOIN) @OneToOne(fetch = FetchType.EAGER, cascade = { CascadeType.PERSIST, CascadeType.REMOVE, CascadeType.MERGE }) @JoinColumn(name = "information_fk", nullable = true) public UserInformation getInformation() { return information; }
From source file:org.bwgz.swim.openlane.data.model.Event.java
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER) public Set<Entry> getEntries() { return entries; }
From source file:ch.systemsx.cisd.openbis.generic.shared.dto.AuthorizationGroupPE.java
@ManyToOne(fetch = FetchType.EAGER) @NotNull(message = ValidationMessages.DATABASE_INSTANCE_NOT_NULL_MESSAGE) @JoinColumn(name = ColumnNames.DATABASE_INSTANCE_COLUMN, updatable = false) public DatabaseInstancePE getDatabaseInstance() { return databaseInstance; }
From source file:com.openlegacy.enterprise.ide.eclipse.editors.models.jpa.JpaManyToOneModel.java
@Override public boolean isDefaultAttrs() { return (void.class.getSimpleName().equalsIgnoreCase(targetEntityClassName) || StringUtils.isEmpty(targetEntityClassName)) && cascade.length == 0 && FetchType.EAGER.equals(fetch) && optional; }
From source file:de.kaiserpfalzEdv.piracc.backend.db.master.Identity.java
@OneToMany(fetch = FetchType.EAGER, cascade = { ALL }, orphanRemoval = true) @JoinColumn(name = "identity_", nullable = false) public Set<CommunicationAddress> getAddresses() { return addresses; }
From source file:ca.mcgill.cs.swevo.qualyzer.model.Project.java
/** * @return the memos//from w ww .j a va 2 s. c o m */ @OneToMany(cascade = { CascadeType.ALL }, fetch = FetchType.EAGER) @JoinColumn(name = "project_persistenceid", nullable = false) @OrderColumn(name = "index") public List<Memo> getMemos() { return fMemos; }