Java Code Examples for javax.persistence.FetchType#EAGER

The following examples show how to use javax.persistence.FetchType#EAGER . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AnnotationBinder.java    From lams with GNU General Public License v2.0 5 votes vote down vote up
public static FetchMode getFetchMode(FetchType fetch) {
	if ( fetch == FetchType.EAGER ) {
		return FetchMode.JOIN;
	}
	else {
		return FetchMode.SELECT;
	}
}
 
Example 2
Source File: MetadataTable.java    From youkefu with Apache License 2.0 5 votes vote down vote up
/**
 * @return the tableproperty
 */
@Where(clause="impfield=0")	//不载入 设置为 禁用 导入导出的字段
@OneToMany(cascade = CascadeType.ALL,fetch = FetchType.EAGER)
@JoinColumn(name = "dbtableid")
@OrderBy("sortindex")
public List<TableProperties> getTableproperty() {
	return tableproperty;
}
 
Example 3
Source File: CubeMetadata.java    From youkefu with Apache License 2.0 4 votes vote down vote up
@ManyToOne(fetch = FetchType.EAGER)
   @JoinColumn(name="tb")
public MetadataTable getTb() {
	return tb;
}
 
Example 4
Source File: AccessCodeEntity.java    From jump-the-queue with Apache License 2.0 4 votes vote down vote up
/**
 * @return the queue
 */
@ManyToOne(cascade = CascadeType.DETACH, fetch = FetchType.EAGER)
@JoinColumn(name = "idQueue")
public QueueEntity getQueue() {
	return queue;
}
 
Example 5
Source File: AccessCodeEntity.java    From jump-the-queue with Apache License 2.0 4 votes vote down vote up
/**
 * @return the visitor
 */
@OneToOne(cascade = CascadeType.DETACH, fetch = FetchType.EAGER)
@JoinColumn(name = "idVisitor")
public VisitorEntity getVisitor() {
	return visitor;
}
 
Example 6
Source File: Funcionario.java    From ponto-inteligente-api with MIT License 4 votes vote down vote up
@ManyToOne(fetch = FetchType.EAGER)
public Empresa getEmpresa() {
	return empresa;
}
 
Example 7
Source File: Lancamento.java    From ponto-inteligente-api with MIT License 4 votes vote down vote up
@ManyToOne(fetch = FetchType.EAGER)
public Funcionario getFuncionario() {
	return funcionario;
}
 
Example 8
Source File: Share.java    From aws-photosharing-example with Apache License 2.0 4 votes vote down vote up
@ManyToOne(fetch=FetchType.EAGER, optional=true)
public User getSharedWith() {return sharedWith;}
 
Example 9
Source File: Share.java    From aws-photosharing-example with Apache License 2.0 4 votes vote down vote up
@ManyToOne(fetch=FetchType.EAGER, optional=false)
public User getUser() {return user;}
 
Example 10
Source File: Client.java    From KITE with Apache License 2.0 4 votes vote down vote up
@OneToOne(cascade = CascadeType.ALL, fetch = FetchType.EAGER)
public Capability getCapability() {
  return capability;
}
 
Example 11
Source File: Client.java    From KITE with Apache License 2.0 4 votes vote down vote up
@OneToOne(cascade = CascadeType.ALL, fetch = FetchType.EAGER)
public BrowserSpecs getBrowserSpecs() {
  return this.browserSpecs;
}
 
Example 12
Source File: BaseComment.java    From Exam-Online with Apache License 2.0 4 votes vote down vote up
@ManyToOne(fetch=FetchType.EAGER)
public SysUser getUser() {
	return user;
}
 
Example 13
Source File: CubeLevel.java    From youkefu with Apache License 2.0 4 votes vote down vote up
@ManyToOne(fetch = FetchType.EAGER)
   @JoinColumn(name="tableproperty")
@NotFound(action=NotFoundAction.IGNORE)
public TableProperties getTableproperty() {
	return tableproperty;
}
 
Example 14
Source File: CubeMeasure.java    From youkefu with Apache License 2.0 4 votes vote down vote up
@ManyToOne(fetch = FetchType.EAGER)
   @JoinColumn(name="measure")
public CubeMeasure getMeasure() {
	return measure;
}
 
Example 15
Source File: ReportFilter.java    From youkefu with Apache License 2.0 4 votes vote down vote up
@ManyToOne(fetch = FetchType.EAGER)
   @JoinColumn(name="tableproperty")
@NotFound(action=NotFoundAction.IGNORE)
public TableProperties getTableproperty() {
	return tableproperty;
}
 
Example 16
Source File: Dimension.java    From youkefu with Apache License 2.0 4 votes vote down vote up
@ManyToOne(fetch = FetchType.EAGER)
   @JoinColumn(name="dim")
public Dimension getDim() {
	return dim;
}
 
Example 17
Source File: Dimension.java    From youkefu with Apache License 2.0 4 votes vote down vote up
@OneToMany(fetch = FetchType.EAGER)
@JoinColumn(name = "dimid",insertable=false,updatable=false)
@OrderBy("sortindex")
public List<CubeLevel> getCubeLevel() {
	return cubeLevel;
}
 
Example 18
Source File: AdmStateTransition.java    From we-cmdb with Apache License 2.0 4 votes vote down vote up
@ManyToOne(fetch = FetchType.EAGER)
@JoinColumn(name = "operation", insertable = false, updatable = false)
public AdmBasekeyCode getOperationCode() {
    return operationCode;
}
 
Example 19
Source File: Client.java    From KITE with Apache License 2.0 2 votes vote down vote up
/**
 * returns the App
 *
 * @return app app
 */
@OneToOne(cascade = CascadeType.ALL, fetch = FetchType.EAGER)
public App getApp() {
  return app;
}
 
Example 20
Source File: Client.java    From KITE with Apache License 2.0 2 votes vote down vote up
/**
 * Gets paas.
 *
 * @return the paas
 */
@OneToOne(cascade = CascadeType.ALL, fetch = FetchType.EAGER)
public Paas getPaas() {
  return this.paas;
}