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:ch.systemsx.cisd.openbis.generic.shared.dto.SamplePE.java
@ManyToOne(fetch = FetchType.EAGER) @JoinColumn(name = ColumnNames.PART_OF_SAMPLE_COLUMN, updatable = true) public SamplePE getContainer() { return container; }
From source file:com.openmeap.model.dto.GlobalSettings.java
@OneToMany(fetch = FetchType.EAGER, cascade = { CascadeType.ALL }, targetEntity = ClusterNode.class) @Lob public List<ClusterNode> getClusterNodes() { return clusterNodes; }
From source file:org.mitre.oauth2.model.AuthenticationHolderEntity.java
/** * @return the scope/*from w ww . j a v a 2 s .c o m*/ */ @ElementCollection(fetch = FetchType.EAGER) @CollectionTable(name = "authentication_holder_scope", joinColumns = @JoinColumn(name = "owner_id")) @Column(name = "scope") public Set<String> getScope() { return scope; }
From source file:org.mitre.oauth2.model.OAuth2AccessTokenEntity.java
@Override @ElementCollection(fetch = FetchType.EAGER) @CollectionTable(joinColumns = @JoinColumn(name = "owner_id"), name = "token_scope") public Set<String> getScope() { return scope; }
From source file:edu.ku.brc.specify.datamodel.Workbench.java
/** * //from w ww.j av a 2 s . co m */ @ManyToOne(cascade = {}, fetch = FetchType.EAGER) @Cascade({ CascadeType.ALL, CascadeType.DELETE_ORPHAN }) @JoinColumn(name = "WorkbenchTemplateID", nullable = false) public WorkbenchTemplate getWorkbenchTemplate() { return this.workbenchTemplate; }
From source file:de.terrestris.shogun.model.User.java
/** * @return the groups/* w ww .ja v a2 s .com*/ */ @ManyToMany(mappedBy = "users", fetch = FetchType.EAGER) @JsonIgnore @Fetch(FetchMode.SUBSELECT) @JsonSerialize(using = LeanBaseModelSetSerializer.class) public Set<Group> getGroups() { return groups; }
From source file:org.mitre.oauth2.model.AuthenticationHolderEntity.java
/** * @return the requestParameters/* ww w . j a v a 2s . co m*/ */ @ElementCollection(fetch = FetchType.EAGER) @CollectionTable(name = "authentication_holder_request_parameter", joinColumns = @JoinColumn(name = "owner_id")) @Column(name = "val") @MapKeyColumn(name = "param") public Map<String, String> getRequestParameters() { return requestParameters; }
From source file:edu.ku.brc.specify.datamodel.PickList.java
/** * @return// ww w . java 2 s . co m */ @OneToMany(cascade = { javax.persistence.CascadeType.ALL }, fetch = FetchType.EAGER, mappedBy = "pickList") @org.hibernate.annotations.Cascade({ org.hibernate.annotations.CascadeType.ALL, org.hibernate.annotations.CascadeType.DELETE_ORPHAN }) public Set<PickListItem> getPickListItems() { return this.pickListItems; }
From source file:gov.nih.nci.caarray.domain.file.CaArrayFile.java
/** * @return the validationResult//w ww. ja v a2 s . c o m */ @OneToOne(cascade = CascadeType.ALL, fetch = FetchType.EAGER) @ForeignKey(name = "caarrayfile_validation_result_fk") public FileValidationResult getValidationResult() { return this.validationResult; }
From source file:edu.ku.brc.specify.datamodel.Workbench.java
/** * /* w ww . jav a 2 s . c o m*/ */ @ManyToOne(cascade = {}, fetch = FetchType.EAGER) @JoinColumn(name = "SpecifyUserID", nullable = false) @Cascade({ CascadeType.MERGE, CascadeType.LOCK }) public SpecifyUser getSpecifyUser() { return this.specifyUser; }