下面列出了javax.persistence.FetchType#EAGER 实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。
/**
* @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;
}
public static FetchMode getFetchMode(FetchType fetch) {
if ( fetch == FetchType.EAGER ) {
return FetchMode.JOIN;
}
else {
return FetchMode.SELECT;
}
}
@ManyToOne(fetch = FetchType.EAGER)
@JoinColumn(name = "operation", insertable = false, updatable = false)
public AdmBasekeyCode getOperationCode() {
return operationCode;
}
@ManyToOne(fetch = FetchType.EAGER)
@JoinColumn(name="tb")
public MetadataTable getTb() {
return tb;
}
@OneToMany(fetch = FetchType.EAGER)
@JoinColumn(name = "dimid",insertable=false,updatable=false)
@OrderBy("sortindex")
public List<CubeLevel> getCubeLevel() {
return cubeLevel;
}
@ManyToOne(fetch = FetchType.EAGER)
@JoinColumn(name="dim")
public Dimension getDim() {
return dim;
}
@ManyToOne(fetch = FetchType.EAGER)
@JoinColumn(name="tableproperty")
@NotFound(action=NotFoundAction.IGNORE)
public TableProperties getTableproperty() {
return tableproperty;
}
@ManyToOne(fetch = FetchType.EAGER)
@JoinColumn(name="measure")
public CubeMeasure getMeasure() {
return measure;
}
@ManyToOne(fetch = FetchType.EAGER)
@JoinColumn(name="tableproperty")
@NotFound(action=NotFoundAction.IGNORE)
public TableProperties getTableproperty() {
return tableproperty;
}
@ManyToOne(fetch=FetchType.EAGER)
public SysUser getUser() {
return user;
}
@OneToOne(cascade = CascadeType.ALL, fetch = FetchType.EAGER)
public BrowserSpecs getBrowserSpecs() {
return this.browserSpecs;
}
@OneToOne(cascade = CascadeType.ALL, fetch = FetchType.EAGER)
public Capability getCapability() {
return capability;
}
@ManyToOne(fetch=FetchType.EAGER, optional=false)
public User getUser() {return user;}
@ManyToOne(fetch=FetchType.EAGER, optional=true)
public User getSharedWith() {return sharedWith;}
@ManyToOne(fetch = FetchType.EAGER)
public Funcionario getFuncionario() {
return funcionario;
}
@ManyToOne(fetch = FetchType.EAGER)
public Empresa getEmpresa() {
return empresa;
}
/**
* @return the visitor
*/
@OneToOne(cascade = CascadeType.DETACH, fetch = FetchType.EAGER)
@JoinColumn(name = "idVisitor")
public VisitorEntity getVisitor() {
return visitor;
}
/**
* @return the queue
*/
@ManyToOne(cascade = CascadeType.DETACH, fetch = FetchType.EAGER)
@JoinColumn(name = "idQueue")
public QueueEntity getQueue() {
return queue;
}
/**
* Gets paas.
*
* @return the paas
*/
@OneToOne(cascade = CascadeType.ALL, fetch = FetchType.EAGER)
public Paas getPaas() {
return this.paas;
}
/**
* returns the App
*
* @return app app
*/
@OneToOne(cascade = CascadeType.ALL, fetch = FetchType.EAGER)
public App getApp() {
return app;
}