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


Java Fetch类代码示例

本文整理汇总了Java中org.hibernate.annotations.Fetch的典型用法代码示例。如果您正苦于以下问题:Java Fetch类的具体用法?Java Fetch怎么用?Java Fetch使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


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

示例1: getPolicies

import org.hibernate.annotations.Fetch; //导入依赖的package包/类
@Override
@Fetch(org.hibernate.annotations.FetchMode.SUBSELECT)
@OneToMany(targetEntity = Policy.class, fetch = FetchType.EAGER, cascade = CascadeType.ALL)
@JoinColumn(name = "guarantee_term_id", referencedColumnName = "id", nullable = true)
public List<IPolicy> getPolicies() {
	return policies;
}
 
开发者ID:Atos-FiwareOps,项目名称:sla-framework,代码行数:8,代码来源:GuaranteeTerm.java

示例2: getPlanServices

import org.hibernate.annotations.Fetch; //导入依赖的package包/类
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER, orphanRemoval = true)
@JoinColumn(name = "user_id", insertable = false, nullable = false, updatable = false)
// MOSCOW
@Fetch(FetchMode.SELECT)
// Это отсечение дублирования при джойне таблици, т.к. в QPlanService есть @OneToOne к QService, и в нем есть @OneToMany к QServiceLang - дублится по
// количеству переводов
// This is the truncation of the duplication when the table joins, since In QPlanService there is @OneToOne to QService, and there is @OneToMany to
// QServiceLang - it is duplicated by the number of translations.
public List<QPlanService> getPlanServices() {
    return planServices;
}
 
开发者ID:bcgov,项目名称:sbc-qsystem,代码行数:12,代码来源:QUser.java

示例3: getStrings

import org.hibernate.annotations.Fetch; //导入依赖的package包/类
@OneToMany(cascade = CascadeType.ALL, mappedBy = "bundle")
@Fetch(value = FetchMode.SELECT)
@MapKey(name = "locale")
public Map<String, LanguageString> getStrings()
{
	return strings;
}
 
开发者ID:equella,项目名称:Equella,代码行数:8,代码来源:LanguageBundle.java

示例4: getSequenciaAny

import org.hibernate.annotations.Fetch; //导入依赖的package包/类
@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;
}
 
开发者ID:GovernIB,项目名称:helium,代码行数:8,代码来源:ExpedientTipus.java

示例5: getSequenciaDefaultAny

import org.hibernate.annotations.Fetch; //导入依赖的package包/类
@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;
}
 
开发者ID:GovernIB,项目名称:helium,代码行数:8,代码来源:ExpedientTipus.java

示例6: getBadges

import org.hibernate.annotations.Fetch; //导入依赖的package包/类
@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;
}
 
开发者ID:muzili90,项目名称:SpringBBS,代码行数:9,代码来源:AcctUser.java

示例7: getRoleList

import org.hibernate.annotations.Fetch; //导入依赖的package包/类
@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;
}
 
开发者ID:muzili90,项目名称:SpringBBS,代码行数:13,代码来源:AcctUser.java

示例8: getTagByTagName

import org.hibernate.annotations.Fetch; //导入依赖的package包/类
@Id
@Fetch(FetchMode.JOIN)
@ManyToOne(cascade = {CascadeType.MERGE, CascadeType.REFRESH, CascadeType.PERSIST})
@JoinColumn(name = "TAG_NAME", referencedColumnName = "NAME",
        nullable = false, insertable = false, updatable = false)
public TagEntity getTagByTagName() {
    return tagByTagName;
}
 
开发者ID:vhontar,项目名称:WebBoxter,代码行数:9,代码来源:QuestionTagId.java

示例9: getChildren

import org.hibernate.annotations.Fetch; //导入依赖的package包/类
/**
    * Return the Adms of a directly higher Level in the adm the tree structure
    * @return The Adms of a directly higher Level <br>
    * <b>Example</b> Returns the Adm(s) with level 2 if the current
    *         Adm has a level equals to 1
    */
   @OneToMany(cascade = { CascadeType.ALL }, mappedBy = "parent")
   @Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE)
   @Fetch(FetchMode.SELECT)
   public List<Adm> getChildren() {
return children;
   }
 
开发者ID:gisgraphy,项目名称:gisgraphy,代码行数:13,代码来源:Adm.java

示例10: getAuthorities

import org.hibernate.annotations.Fetch; //导入依赖的package包/类
@ElementCollection(targetClass=EAuthority.class,fetch=FetchType.EAGER)
@JoinTable(name = "pessoa_autorities")
@Enumerated(EnumType.STRING)
@Fetch(FetchMode.SELECT)
public List<EAuthority> getAuthorities() {
	return authorities;
}
 
开发者ID:darciopacifico,项目名称:omr,代码行数:8,代码来源:PessoaVO.java

示例11: getAuthorities

import org.hibernate.annotations.Fetch; //导入依赖的package包/类
/**
 * 
 * @return
 */
@ElementCollection(targetClass=EAuthority.class,fetch=FetchType.EAGER)
@JoinTable(name = "grupo_autorities")
@Enumerated(EnumType.STRING)
@Fetch(FetchMode.SELECT)
public List<EAuthority> getAuthorities() {
	return authorities;
}
 
开发者ID:darciopacifico,项目名称:omr,代码行数:12,代码来源:GrupoVO.java

示例12: getAlternateNames

import org.hibernate.annotations.Fetch; //导入依赖的package包/类
/**
    * @return A list of the {@link AlternateName}s for this GisFeature
    */
   @OneToMany(cascade = { CascadeType.ALL }, mappedBy = "gisFeature")
   @Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE)
   @Fetch(FetchMode.SELECT)
   public Set<AlternateName> getAlternateNames() {
return alternateNames;
   }
 
开发者ID:gisgraphy,项目名称:gisgraphy,代码行数:10,代码来源:GisFeature.java

示例13: getZipCodes

import org.hibernate.annotations.Fetch; //导入依赖的package包/类
/**
    * @return the zip codes for the city
    */
@OneToMany(cascade = { CascadeType.ALL }, mappedBy = "gisFeature")
@Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE)
@Fetch(FetchMode.SELECT)
//TODO tests zip
public Set<ZipCode> getZipCodes() {
	return zipCodes;
}
 
开发者ID:gisgraphy,项目名称:gisgraphy,代码行数:11,代码来源:GisFeature.java

示例14: getTmMailNewsletter

import org.hibernate.annotations.Fetch; //导入依赖的package包/类
@Fetch(FetchMode.JOIN)
@BatchSize(size = 100)
@ManyToOne(fetch=FetchType.EAGER, optional = true)
@JoinColumn(name="tm_mail_newsletter_id")
public TmMailNewsletter getTmMailNewsletter() {
	return this.tmMailNewsletter;
}
 
开发者ID:gleb619,项目名称:hotel_shop,代码行数:8,代码来源:RelMailNewsletterGroup.java

示例15: getTmMailNewsletterGroup

import org.hibernate.annotations.Fetch; //导入依赖的package包/类
@Fetch(FetchMode.JOIN)
@BatchSize(size = 100)
@ManyToOne(fetch=FetchType.EAGER, optional = true)
@JoinColumn(name="tm_mail_newsletter_group_id")
public TmMailNewsletterGroup getTmMailNewsletterGroup() {
	return this.tmMailNewsletterGroup;
}
 
开发者ID:gleb619,项目名称:hotel_shop,代码行数:8,代码来源:RelMailNewsletterGroup.java


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