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.manantiales.entity.CheckCondition.java
/** * @return the player */ @ManyToOne(cascade = CascadeType.ALL, fetch = FetchType.EAGER) public GridPlayer getPlayer() { return agent; }
From source file:gt.entities.UserProfile.java
@ManyToOne(fetch = FetchType.EAGER) @JoinColumn(name = "idLicence", nullable = false) public Licences getLicence() { return licence; }
From source file:ca.mcgill.cs.swevo.qualyzer.model.Fragment.java
/** * @return/* w ww .j a v a 2 s. c om*/ */ @OneToMany(cascade = { CascadeType.ALL }, fetch = FetchType.EAGER, orphanRemoval = true) @CollectionId(columns = @Column(name = "COL_ID"), type = @Type(type = "string"), generator = "uuid-gen") public List<CodeEntry> getCodeEntries() { return fCodeEntries; }
From source file:com.springside.lanzhm.hellospring.entity.User.java
@ManyToMany(cascade = { CascadeType.PERSIST, CascadeType.MERGE }, fetch = FetchType.EAGER) @JoinTable(name = "sys_user_role", joinColumns = { @JoinColumn(name = "user_id") }, inverseJoinColumns = { @JoinColumn(name = "role_id") }) public Set<Role> getRoles() { return roles; }
From source file:com.webfileanalyzer.domain.FileStatistic.java
@JsonIgnore @ManyToOne(cascade = CascadeType.ALL, fetch = FetchType.EAGER) @JoinColumn(name = "fileInDB") public Files getFileInDB() { return fileInDB; }
From source file:ca.mcgill.cs.swevo.qualyzer.model.Project.java
/** * @return the investigators// ww w. j a v a 2s. c o m */ @OneToMany(cascade = { CascadeType.ALL }, fetch = FetchType.EAGER) @JoinColumn(name = "project_persistenceid", nullable = false) @OrderColumn(name = "index") public List<Investigator> getInvestigators() { return fInvestigators; }
From source file:ch.systemsx.cisd.openbis.generic.shared.dto.EntityTypePropertyTypePE.java
@NotNull(message = ValidationMessages.PROPERTY_TYPE_NOT_NULL_MESSAGE) @ManyToOne(fetch = FetchType.EAGER) @JoinColumn(name = ColumnNames.PROPERTY_TYPE_COLUMN, updatable = false) private PropertyTypePE getPropertyTypeInternal() { return propertyType; }
From source file:io.fourfinanceit.homework.model.Client.java
/** * @return the loanApplications//from w w w . ja v a 2 s .c o m */ @OneToMany(fetch = FetchType.EAGER, cascade = { javax.persistence.CascadeType.ALL }) @JoinColumn(name = "client_id") @JsonManagedReference public Set<LoanApplication> getLoanApplications() { return loanApplications; }
From source file:com.mycompany.model.Country.java
@OneToMany(mappedBy = "country", fetch = FetchType.EAGER) public Set<ProvinceState> getProvinceStates() { return provinceStates; }
From source file:be.fedict.eid.idp.entity.AttributeEntity.java
@OneToMany(fetch = FetchType.EAGER, cascade = CascadeType.REMOVE, mappedBy = AttributeProtocolUriEntity.ATTRIBUTE_COLUMN_NAME) public Set<AttributeProtocolUriEntity> getProtocolUris() { return this.protocolUris; }