当前位置: 首页>>代码示例>>Java>>正文


Java FetchType.LAZY属性代码示例

本文整理汇总了Java中javax.persistence.FetchType.LAZY属性的典型用法代码示例。如果您正苦于以下问题:Java FetchType.LAZY属性的具体用法?Java FetchType.LAZY怎么用?Java FetchType.LAZY使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在javax.persistence.FetchType的用法示例。


在下文中一共展示了FetchType.LAZY属性的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getDiskShares

/** @return . */
@OneToMany(fetch = FetchType.LAZY, mappedBy = "diskInfo")
public Set<DiskShare> getDiskShares() {
    return this.diskShares;
}
 
开发者ID:zhaojunfei,项目名称:lemon,代码行数:5,代码来源:DiskInfo.java

示例2: getShares

@XmlTransient
@LazyCollection(LazyCollectionOption.EXTRA)
@OneToMany(mappedBy = "user", orphanRemoval=true, fetch=FetchType.LAZY, cascade=CascadeType.ALL)
public List<Share> getShares() {return shares;}
 
开发者ID:awslabs,项目名称:aws-photosharing-example,代码行数:4,代码来源:User.java

示例3: getWhitelistInfos

/** @return . */
@OneToMany(fetch = FetchType.LAZY, mappedBy = "whitelistService")
public Set<WhitelistInfo> getWhitelistInfos() {
    return this.whitelistInfos;
}
 
开发者ID:zhaojunfei,项目名称:lemon,代码行数:5,代码来源:WhitelistService.java

示例4: getParentStructRules

/** @return . */
@OneToMany(fetch = FetchType.LAZY, mappedBy = "childType")
public Set<PartyStructRule> getParentStructRules() {
    return this.parentStructRules;
}
 
开发者ID:zhaojunfei,项目名称:lemon,代码行数:5,代码来源:PartyType.java

示例5: getDiskInfo

/** @return null. */
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "INFO_ID")
public DiskInfo getDiskInfo() {
    return this.diskInfo;
}
 
开发者ID:zhaojunfei,项目名称:lemon,代码行数:6,代码来源:DiskShare.java

示例6: getPortalInfo

/** @return null. */
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "INFO_ID")
public PortalInfo getPortalInfo() {
    return this.portalInfo;
}
 
开发者ID:zhaojunfei,项目名称:lemon,代码行数:6,代码来源:PortalRef.java

示例7: getReportQuery

/** @return null. */
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "QUERY_ID")
public ReportQuery getReportQuery() {
    return this.reportQuery;
}
 
开发者ID:zhaojunfei,项目名称:lemon,代码行数:6,代码来源:ReportDim.java

示例8: getActivityInfo

/** @return null. */
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "INFO_ID")
public ActivityInfo getActivityInfo() {
    return this.activityInfo;
}
 
开发者ID:zhaojunfei,项目名称:lemon,代码行数:6,代码来源:ActivityUser.java

示例9: getBpmConfBase

/** @return 外键,流程配置. */
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "CONF_BASE_ID")
public BpmConfBase getBpmConfBase() {
    return this.bpmConfBase;
}
 
开发者ID:zhaojunfei,项目名称:lemon,代码行数:6,代码来源:BpmProcess.java

示例10: getTaskDeadlines

/** @return . */
@OneToMany(fetch = FetchType.LAZY, mappedBy = "taskInfo")
public Set<TaskDeadline> getTaskDeadlines() {
    return this.taskDeadlines;
}
 
开发者ID:zhaojunfei,项目名称:lemon,代码行数:5,代码来源:TaskInfo.java

示例11: getPlmProject

/** @return null. */
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "PROJECT_ID")
public PlmProject getPlmProject() {
    return this.plmProject;
}
 
开发者ID:zhaojunfei,项目名称:lemon,代码行数:6,代码来源:PlmSprint.java

示例12: getAccountAliases

/** @return . */
@OneToMany(fetch = FetchType.LAZY, mappedBy = "accountInfo")
public Set<AccountAlias> getAccountAliases() {
    return this.accountAliases;
}
 
开发者ID:zhaojunfei,项目名称:lemon,代码行数:5,代码来源:AccountInfo.java

示例13: getPerm

/** @return 外键,权限. */
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "PERM_ID")
public Perm getPerm() {
    return this.perm;
}
 
开发者ID:zhaojunfei,项目名称:lemon,代码行数:6,代码来源:Access.java

示例14: getLancamentos

@OneToMany(mappedBy = "funcionario", fetch = FetchType.LAZY, cascade = CascadeType.ALL)
public List<Lancamento> getLancamentos() {
	return lancamentos;
}
 
开发者ID:m4rciosouza,项目名称:ponto-inteligente-api,代码行数:4,代码来源:Funcionario.java

示例15: getCmsCatalog

/** @return null. */
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "PARENT_ID")
public CmsCatalog getCmsCatalog() {
    return this.cmsCatalog;
}
 
开发者ID:zhaojunfei,项目名称:lemon,代码行数:6,代码来源:CmsCatalog.java


注:本文中的javax.persistence.FetchType.LAZY属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。