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:gov.nih.nci.cabig.caaers.domain.DiseaseHistory.java
/** * Gets the abstract study disease.// w w w . j a v a2 s . com * * @return the abstract study disease */ @OneToOne(fetch = FetchType.EAGER) @JoinColumn(name = "study_disease_id") public AbstractStudyDisease getAbstractStudyDisease() { return abstractStudyDisease; }
From source file:com.sccl.attech.modules.sys.entity.Role.java
@ManyToMany(fetch = FetchType.EAGER) @JoinTable(name = "sys_role_office", joinColumns = { @JoinColumn(name = "role_id") }, inverseJoinColumns = { @JoinColumn(name = "office_id") }) @Where(clause = "del_flag='" + DEL_FLAG_NORMAL + "'") @OrderBy("id")//from ww w. ja v a2 s . c o m @Fetch(FetchMode.SUBSELECT) @NotFound(action = NotFoundAction.IGNORE) @Cache(usage = CacheConcurrencyStrategy.READ_WRITE) @JsonIgnore public List<Office> getOfficeList() { return officeList; }
From source file:com.hmsinc.epicenter.model.analysis.classify.Classifier.java
/** * @return the targets//from w w w. j av a2 s. c o m */ @Fetch(FetchMode.JOIN) @OneToMany(cascade = { CascadeType.ALL }, fetch = FetchType.EAGER, mappedBy = "classifier") @Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE) public List<ClassificationTarget> getTargets() { return targets; }
From source file:ch.systemsx.cisd.openbis.generic.shared.dto.ExperimentPE.java
@ManyToOne(fetch = FetchType.EAGER) @NotNull(message = ValidationMessages.PROJECT_NOT_NULL_MESSAGE) @JoinColumn(name = ColumnNames.PROJECT_COLUMN, updatable = true) @IndexedEmbedded(prefix = SearchFieldConstants.PREFIX_PROJECT) private ProjectPE getProjectInternal() { return project; }
From source file:ch.systemsx.cisd.openbis.generic.shared.dto.SamplePE.java
@ManyToOne(fetch = FetchType.EAGER) @JoinColumn(name = ColumnNames.DATABASE_INSTANCE_COLUMN, updatable = true) public DatabaseInstancePE getDatabaseInstance() { return databaseInstance; }
From source file:ch.systemsx.cisd.openbis.generic.shared.dto.ProjectPE.java
@ManyToOne(fetch = FetchType.EAGER) @JoinColumn(name = ColumnNames.PERSON_LEADER_COLUMN, updatable = false) public final PersonPE getProjectLeader() { return projectLeader; }
From source file:gov.nih.nci.firebird.data.Organization.java
/** * Returns the map of roles for this organization. * * @return the roles.// ww w .jav a 2 s. co m */ @OneToMany(mappedBy = "organization", cascade = CascadeType.ALL, fetch = FetchType.EAGER) @MapKey(name = "roleType") public Map<OrganizationRoleType, AbstractOrganizationRole> getRoles() { return roles; }
From source file:gov.ca.cwds.cals.persistence.model.lisfas.LisFacFile.java
@ManyToOne(fetch = FetchType.EAGER) @JoinColumn(name = "fac_do_nbr", referencedColumnName = "do_nbr") public LisDoFile getFacDoNbr() { return facDoNbr; }
From source file:com.impetus.ankush.common.domain.User.java
/** * Gets the roles./* www . j av a 2 s .co m*/ * * @return the roles */ @ManyToMany(fetch = FetchType.EAGER) @JoinTable(name = "user_role", joinColumns = { @JoinColumn(name = "user_id") }, inverseJoinColumns = @JoinColumn(name = "role_id")) @JsonIgnore public Set<Role> getRoles() { return roles; }
From source file:com.hmsinc.epicenter.model.analysis.classify.Classifier.java
/** * @return the classifications//from w ww .j a v a 2s.c o m */ @OneToMany(cascade = { CascadeType.ALL }, fetch = FetchType.EAGER, mappedBy = "classifier") @Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE) @Fetch(FetchMode.JOIN) @Sort(type = SortType.NATURAL) public SortedSet<Classification> getClassifications() { return classifications; }