本文整理匯總了Java中org.hibernate.annotations.FetchMode.SUBSELECT屬性的典型用法代碼示例。如果您正苦於以下問題:Java FetchMode.SUBSELECT屬性的具體用法?Java FetchMode.SUBSELECT怎麽用?Java FetchMode.SUBSELECT使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。您也可以進一步了解該屬性所在類org.hibernate.annotations.FetchMode
的用法示例。
在下文中一共展示了FetchMode.SUBSELECT屬性的9個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: getSequenciaAny
@OneToMany(mappedBy="expedientTipus", cascade={CascadeType.ALL}, fetch=FetchType.EAGER)
@Fetch(value = FetchMode.SUBSELECT)
@MapKey(name = "any")
@Sort(type = SortType.NATURAL)
public SortedMap<Integer, SequenciaAny> getSequenciaAny() {
return sequenciaAny;
}
示例2: getSequenciaDefaultAny
@OneToMany(mappedBy="expedientTipus", cascade={CascadeType.ALL}, fetch=FetchType.EAGER)
@Fetch(value = FetchMode.SUBSELECT)
@MapKey(name = "any")
@Sort(type = SortType.NATURAL)
public SortedMap<Integer, SequenciaDefaultAny> getSequenciaDefaultAny() {
return sequenciaDefaultAny;
}
示例3: getBadges
@ManyToMany
@JoinTable(name = "user_badge", joinColumns = { @JoinColumn(name = "user_id") }, inverseJoinColumns = { @JoinColumn(name = "badge_id") })
@Fetch(FetchMode.SUBSELECT)
@OrderBy("id")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public Set<Badge> getBadges() {
return badges;
}
示例4: getRoleList
@ManyToMany
//�м����,��������Ĭ����������
@JoinTable(name = "ACCT_USER_ROLE", joinColumns = { @JoinColumn(name = "USER_ID") }, inverseJoinColumns = { @JoinColumn(name = "ROLE_ID") })
//Fecth���Զ���
@Fetch(FetchMode.SUBSELECT)
//���ϰ�id����.
@OrderBy("id")
//�����ж���id�Ļ���.
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public List<AcctRole> getRoleList() {
return roleList;
}
示例5: getRegistreMembres
@OneToMany(mappedBy="registre", cascade={CascadeType.ALL}, fetch=FetchType.EAGER)
@OrderBy("ordre asc")
@Fetch(value = FetchMode.SUBSELECT)
public List<CampRegistre> getRegistreMembres() {
return this.registreMembres;
}
示例6: getEstats
@OneToMany(mappedBy="expedientTipus", fetch=FetchType.EAGER)
@OrderBy("ordre asc")
@Fetch(value = FetchMode.SUBSELECT)
public List<Estat> getEstats() {
return this.estats;
}
示例7: getConsultes
@OneToMany(mappedBy="expedientTipus", fetch=FetchType.EAGER)
@Fetch(value = FetchMode.SUBSELECT)
public Set<Consulta> getConsultes() {
return this.consultes;
}
示例8: getDominis
@OneToMany(mappedBy="expedientTipus", cascade={CascadeType.ALL}, fetch=FetchType.EAGER)
@Fetch(value = FetchMode.SUBSELECT)
public Set<Domini> getDominis() {
return this.dominis;
}
示例9: getImageVOs
/**
* @return the imageVOs
*/
@OneToMany(cascade=CascadeType.ALL,orphanRemoval=true,fetch=FetchType.EAGER)
@Fetch(FetchMode.SUBSELECT)
public List<ImageVO> getImageVOs() {
return imageVOs;
}