當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。