/**
*
* @return
*/
@ElementCollection(targetClass=EAuthority.class,fetch=FetchType.EAGER)
@JoinTable(name = "grupo_autorities")
@Enumerated(EnumType.STRING)
@Fetch(FetchMode.SELECT)
public List<EAuthority> getAuthorities() {
return authorities;
}
java类org.hibernate.annotations.FetchMode的实例源码
GrupoVO.java 文件源码
项目:omr
阅读 51
收藏 0
点赞 0
评论 0
FetchProfileBinder.java 文件源码
项目:lams
阅读 42
收藏 0
点赞 0
评论 0
private static void bind(MetadataImplementor metadata, AnnotationInstance fetchProfile) {
String name = JandexHelper.getValue( fetchProfile, "name", String.class );
Set<Fetch> fetches = new HashSet<Fetch>();
AnnotationInstance[] overrideAnnotations = JandexHelper.getValue(
fetchProfile,
"fetchOverrides",
AnnotationInstance[].class
);
for ( AnnotationInstance override : overrideAnnotations ) {
FetchMode fetchMode = JandexHelper.getEnumValue( override, "mode", FetchMode.class );
if ( !fetchMode.equals( org.hibernate.annotations.FetchMode.JOIN ) ) {
throw new MappingException( "Only FetchMode.JOIN is currently supported" );
}
final String entityName = JandexHelper.getValue( override, "entity", String.class );
final String associationName = JandexHelper.getValue( override, "association", String.class );
fetches.add( new Fetch( entityName, associationName, fetchMode.toString().toLowerCase() ) );
}
metadata.addFetchProfile( new FetchProfile( name, fetches ) );
}
RelatorioVO.java 文件源码
项目:omr
阅读 53
收藏 0
点赞 0
评论 0
/**
* @return the examOMRMetadataVO
*/
@OneToMany(cascade = CascadeType.ALL, orphanRemoval = true, fetch=FetchType.EAGER)
@JoinColumn(name = "fk_relatorio")
@MapKey(name = "omrKey")
@JazzProp(name="",ignore=true)
@Fetch(FetchMode.SELECT)
public Map<String, ExamOMRMetadataVO> getExamOMRMetadataVO() {
return examOMRMetadataVO;
}
LanguageBundle.java 文件源码
项目:Equella
阅读 42
收藏 0
点赞 0
评论 0
@OneToMany(cascade = CascadeType.ALL, mappedBy = "bundle")
@Fetch(value = FetchMode.SELECT)
@MapKey(name = "locale")
public Map<String, LanguageString> getStrings()
{
return strings;
}
QUser.java 文件源码
项目:sbc-qsystem
阅读 44
收藏 0
点赞 0
评论 0
@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;
}
ExpedientTipus.java 文件源码
项目:helium
阅读 40
收藏 0
点赞 0
评论 0
@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;
}
ExpedientTipus.java 文件源码
项目:helium
阅读 40
收藏 0
点赞 0
评论 0
@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;
}
AcctUser.java 文件源码
项目:SpringBBS
阅读 39
收藏 0
点赞 0
评论 0
@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;
}
AcctUser.java 文件源码
项目:SpringBBS
阅读 37
收藏 0
点赞 0
评论 0
@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;
}
Adm.java 文件源码
项目:gisgraphy
阅读 44
收藏 0
点赞 0
评论 0
/**
* 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;
}
OpenStreetMap.java 文件源码
项目:gisgraphy
阅读 45
收藏 0
点赞 0
评论 0
/**
* @return A list of the {@link AlternateName}s for this street
*/
@OneToMany(cascade = { CascadeType.ALL }, mappedBy = "street")
@Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE)
@Fetch(FetchMode.SELECT)
public List<AlternateOsmName> getAlternateNames() {
return alternateNames;
}
OpenStreetMap.java 文件源码
项目:gisgraphy
阅读 38
收藏 0
点赞 0
评论 0
/**
* @return the houseNumbers associated to that street
*/
@OneToMany(cascade = { CascadeType.ALL }, mappedBy = "street")
@Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE)
@Fetch(FetchMode.SELECT)
@Sort(comparator=HouseNumberComparator.class,type=SortType.COMPARATOR)
public SortedSet<HouseNumber> getHouseNumbers() {
return houseNumbers;
}
GisFeature.java 文件源码
项目:gisgraphy
阅读 51
收藏 0
点赞 0
评论 0
/**
* @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;
}
RelMailNewsletterGroup.java 文件源码
项目:hotel_shop
阅读 41
收藏 0
点赞 0
评论 0
@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;
}
RelReqServHotelTmContactEasy.java 文件源码
项目:hotel_shop
阅读 38
收藏 0
点赞 0
评论 0
@Fetch(FetchMode.JOIN)
@BatchSize(size = 100)
@ManyToOne(fetch=FetchType.EAGER, cascade = CascadeType.ALL, optional = true)
@JoinColumn(name="contact_easy_id")
public TmContactEasy getTmContactEasy() {
return this.tmContactEasy;
}
RelServTransferTmContact.java 文件源码
项目:hotel_shop
阅读 37
收藏 0
点赞 0
评论 0
@Fetch(FetchMode.JOIN)
@BatchSize(size = 100)
@ManyToOne(fetch=FetchType.EAGER, optional = true)
@JoinColumn(name="serv_transfers_id")
public ServTransfer getServTransfer() {
return this.servTransfer;
}
AnswerEntity.java 文件源码
项目:WebBoxter
阅读 33
收藏 0
点赞 0
评论 0
@Fetch(FetchMode.SELECT)
@ManyToOne(cascade = {CascadeType.MERGE, CascadeType.REFRESH, CascadeType.PERSIST}, optional = false)
@NotNull(message = NOT_NULL)
@JoinColumn(name = "QUESTION_ID", referencedColumnName = "ID", nullable = false)
public QuestionEntity getQuestionByQuestionId() {
return questionByQuestionId;
}
ServHotel.java 文件源码
项目:hotel_shop
阅读 48
收藏 0
点赞 0
评论 0
@Fetch(FetchMode.JOIN)
@BatchSize(size = 100)
@ManyToOne(fetch=FetchType.EAGER, cascade = CascadeType.ALL)
@JoinColumn(name="contactinformation_id")
public InfoContactInformation getInfoContactInformation() {
return this.infoContactInformation;
}
RelatorioVO.java 文件源码
项目:omr
阅读 41
收藏 0
点赞 0
评论 0
/**
* @return the examOMRMetadataVO
*/
@OneToMany(cascade = CascadeType.ALL, orphanRemoval = true, fetch=FetchType.EAGER)
@JoinColumn(name = "fk_relatorio")
@MapKey(name = "omrKey")
@JazzProp(name="",ignore=true)
@Fetch(FetchMode.SELECT)
public Map<String, ExamOMRMetadataVO> getExamOMRMetadataVO() {
return examOMRMetadataVO;
}
ServHotel.java 文件源码
项目:hotel_shop
阅读 45
收藏 0
点赞 0
评论 0
@Fetch(FetchMode.JOIN)
@BatchSize(size = 100)
@ManyToOne(fetch=FetchType.EAGER, cascade = CascadeType.ALL)
@JoinColumn(name="payment_details_id")
public PaymentDetails getPaymentDetails() {
return this.paymentDetails;
}
RelServHotelImage.java 文件源码
项目:hotel_shop
阅读 36
收藏 0
点赞 0
评论 0
@Fetch(FetchMode.JOIN)
@BatchSize(size = 100)
@ManyToOne(fetch=FetchType.EAGER, optional = true)
@JoinColumn(name="serv_hotel_id")
public ServHotel getServHotel() {
return this.servHotel;
}
RelServHotelImage.java 文件源码
项目:hotel_shop
阅读 42
收藏 0
点赞 0
评论 0
@Fetch(FetchMode.JOIN)
@BatchSize(size = 100)
@ManyToOne(fetch=FetchType.EAGER, optional = true)
@JoinColumn(name="image_id")
public TmImage getTmImage() {
return this.tmImage;
}
RelServHotelDocDocuments.java 文件源码
项目:hotel_shop
阅读 31
收藏 0
点赞 0
评论 0
@Fetch(FetchMode.JOIN)
@BatchSize(size = 100)
@ManyToOne(fetch=FetchType.EAGER, optional = true)
@JoinColumn(name="serv_hotel_id")
public ServHotel getServHotel() {
return this.servHotel;
}
RelUserDetails.java 文件源码
项目:hotel_shop
阅读 38
收藏 0
点赞 0
评论 0
@Fetch(FetchMode.JOIN)
@BatchSize(size = 100)
@ManyToOne(fetch=FetchType.EAGER, optional = true)
@JoinColumn(name="user_details_id")
public UserDetail getUserDetail() {
return this.userDetail;
}
RelUserDetails.java 文件源码
项目:hotel_shop
阅读 30
收藏 0
点赞 0
评论 0
@Fetch(FetchMode.JOIN)
@BatchSize(size = 100)
@ManyToOne(fetch=FetchType.EAGER, optional = true)
@JoinColumn(name="users_id")
public Users getUsers() {
return this.users;
}
RelShopPermission.java 文件源码
项目:hotel_shop
阅读 43
收藏 0
点赞 0
评论 0
@Fetch(FetchMode.JOIN)
@BatchSize(size = 100)
@ManyToOne(fetch=FetchType.EAGER, optional = true)
@JoinColumn(name="info_permission_id")
public InfoPermission getInfoPermission() {
return this.infoPermission;
}
RelShopPermission.java 文件源码
项目:hotel_shop
阅读 39
收藏 0
点赞 0
评论 0
@Fetch(FetchMode.JOIN)
@BatchSize(size = 100)
@ManyToOne(fetch=FetchType.EAGER, optional = true)
@JoinColumn(name="shop_permission_id")
public ShopPermission getShopPermission() {
return this.shopPermission;
}
RelServHotelRoomImage.java 文件源码
项目:hotel_shop
阅读 35
收藏 0
点赞 0
评论 0
@Fetch(FetchMode.JOIN)
@BatchSize(size = 100)
@ManyToOne(fetch=FetchType.EAGER, optional = true)
@JoinColumn(name="serv_hotel_room_id")
public ServHotelRoom getServHotelRoom() {
return this.servHotelRoom;
}
RelServHotelRoomImage.java 文件源码
项目:hotel_shop
阅读 33
收藏 0
点赞 0
评论 0
@Fetch(FetchMode.JOIN)
@BatchSize(size = 100)
@ManyToOne(fetch=FetchType.EAGER, optional = true)
@JoinColumn(name="image_id")
public TmImage getTmImage() {
return this.tmImage;
}
ParticipationVO.java 文件源码
项目:omr
阅读 36
收藏 0
点赞 0
评论 0
/**
* @return the questionResults
*/
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER, mappedBy = "participationVO")
@IndexColumn(name = "PK")
@OrderColumn(name = "PK")
@Fetch(FetchMode.SELECT)
public List<CriterionResultVO> getCriterionResults() {
return criterionResults;
}