Java 类org.hibernate.annotations.Fetch 实例源码

项目:sla-framework    文件:GuaranteeTerm.java   
@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;
}
项目:Equella    文件:LanguageBundle.java   
@OneToMany(cascade = CascadeType.ALL, mappedBy = "bundle")
@Fetch(value = FetchMode.SELECT)
@MapKey(name = "locale")
public Map<String, LanguageString> getStrings()
{
    return strings;
}
项目:sbc-qsystem    文件:QUser.java   
@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;
}
项目:helium    文件:ExpedientTipus.java   
@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;
}
项目:helium    文件:ExpedientTipus.java   
@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;
}
项目:SpringBBS    文件:AcctUser.java   
@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;
}
项目:SpringBBS    文件:AcctUser.java   
@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;
}
项目:WebBoxter    文件:QuestionTagId.java   
@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;
}
项目:gisgraphy    文件:Adm.java   
/**
    * 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;
   }
项目:omr    文件:PessoaVO.java   
@ElementCollection(targetClass=EAuthority.class,fetch=FetchType.EAGER)
@JoinTable(name = "pessoa_autorities")
@Enumerated(EnumType.STRING)
@Fetch(FetchMode.SELECT)
public List<EAuthority> getAuthorities() {
    return authorities;
}
项目:omr    文件:GrupoVO.java   
/**
 * 
 * @return
 */
@ElementCollection(targetClass=EAuthority.class,fetch=FetchType.EAGER)
@JoinTable(name = "grupo_autorities")
@Enumerated(EnumType.STRING)
@Fetch(FetchMode.SELECT)
public List<EAuthority> getAuthorities() {
    return authorities;
}
项目:gisgraphy    文件:GisFeature.java   
/**
    * @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;
   }
项目:gisgraphy    文件:GisFeature.java   
/**
    * @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;
}
项目:hotel_shop    文件:RelMailNewsletterGroup.java   
@Fetch(FetchMode.JOIN)
@BatchSize(size = 100)
@ManyToOne(fetch=FetchType.EAGER, optional = true)
@JoinColumn(name="tm_mail_newsletter_id")
public TmMailNewsletter getTmMailNewsletter() {
    return this.tmMailNewsletter;
}
项目:hotel_shop    文件:RelMailNewsletterGroup.java   
@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;
}
项目:hotel_shop    文件:RelReqServHotelTmContactEasy.java   
@Fetch(FetchMode.JOIN)
@BatchSize(size = 100)
@ManyToOne(fetch=FetchType.EAGER, optional = true)
@JoinColumn(name="req_serv_hotel_id")
public ReqServHotel getReqServHotel() {
    return this.reqServHotel;
}
项目:hotel_shop    文件:RelReqServHotelTmContactEasy.java   
@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;
}
项目:hotel_shop    文件:RelServTransferTmContact.java   
@Fetch(FetchMode.JOIN)
@BatchSize(size = 100)
@ManyToOne(fetch=FetchType.EAGER, optional = true)
@JoinColumn(name="serv_transfers_id")
public ServTransfer getServTransfer() {
    return this.servTransfer;
}
项目:hotel_shop    文件:RelServTransferTmContact.java   
@Fetch(FetchMode.JOIN)
@BatchSize(size = 100)
@ManyToOne(fetch=FetchType.EAGER, optional = true)
@JoinColumn(name="tm_contact_id")
public TmContact getTmContact() {
    return this.tmContact;
}
项目:hotel_shop    文件:ServHotel.java   
@Fetch(FetchMode.JOIN)
@BatchSize(size = 100)
@ManyToOne(fetch=FetchType.EAGER, cascade = CascadeType.ALL)
@JoinColumn(name="contactinformation_id")
public InfoContactInformation getInfoContactInformation() {
    return this.infoContactInformation;
}
项目:hotel_shop    文件:ServHotel.java   
@Fetch(FetchMode.JOIN)
@BatchSize(size = 100)
@ManyToOne(fetch=FetchType.EAGER, cascade = CascadeType.ALL)
@JoinColumn(name="address_id")
public LocationAddress getLocationAddress() {
    return this.locationAddress;
}
项目:hotel_shop    文件:ServHotel.java   
@Fetch(FetchMode.JOIN)
@BatchSize(size = 100)
@ManyToOne(fetch=FetchType.EAGER, cascade = CascadeType.ALL)
@JoinColumn(name="payment_details_id")
public PaymentDetails getPaymentDetails() {
    return this.paymentDetails;
}
项目:hotel_shop    文件:RelServHotelImage.java   
@Fetch(FetchMode.JOIN)
@BatchSize(size = 100)
@ManyToOne(fetch=FetchType.EAGER, optional = true)
@JoinColumn(name="image_id")
public TmImage getTmImage() {
    return this.tmImage;
}
项目:hotel_shop    文件:RelServHotelDocDocuments.java   
@Fetch(FetchMode.JOIN)
@BatchSize(size = 100)
@ManyToOne(fetch=FetchType.EAGER, optional = true)
@JoinColumn(name="doc_documents_id")
public DocDocuments getDocDocuments() {
    return this.docDocuments;
}
项目:hotel_shop    文件:RelServHotelDocDocuments.java   
@Fetch(FetchMode.JOIN)
@BatchSize(size = 100)
@ManyToOne(fetch=FetchType.EAGER, optional = true)
@JoinColumn(name="serv_hotel_id")
public ServHotel getServHotel() {
    return this.servHotel;
}
项目:hotel_shop    文件:RelUserDetails.java   
@Fetch(FetchMode.JOIN)
@BatchSize(size = 100)
@ManyToOne(fetch=FetchType.EAGER, optional = true)
@JoinColumn(name="users_id")
public Users getUsers() {
    return this.users;
}
项目:hotel_shop    文件:RelShopPermission.java   
@Fetch(FetchMode.JOIN)
@BatchSize(size = 100)
@ManyToOne(fetch=FetchType.EAGER, optional = true)
@JoinColumn(name="info_permission_id")
public InfoPermission getInfoPermission() {
    return this.infoPermission;
}
项目:omr    文件:PessoaVO.java   
@ElementCollection(targetClass=EAuthority.class,fetch=FetchType.EAGER)
@JoinTable(name = "pessoa_autorities")
@Enumerated(EnumType.STRING)
@Fetch(FetchMode.SELECT)
public List<EAuthority> getAuthorities() {
    return authorities;
}
项目:hotel_shop    文件:RelServHotelRoomImage.java   
@Fetch(FetchMode.JOIN)
@BatchSize(size = 100)
@ManyToOne(fetch=FetchType.EAGER, optional = true)
@JoinColumn(name="serv_hotel_room_id")
public ServHotelRoom getServHotelRoom() {
    return this.servHotelRoom;
}
项目:WebBoxter    文件:QuestionTagEntity.java   
@Id
@Fetch(FetchMode.SELECT)
@ManyToOne(cascade = {CascadeType.MERGE, CascadeType.REFRESH, CascadeType.PERSIST})
@JoinColumn(name = "QUESTION_ID", referencedColumnName = "ID", nullable = false)
public QuestionEntity getQuestionByQuestionId() {
    return questionByQuestionId;
}
项目:sla-framework    文件:GuaranteeTerm.java   
@Override
@Fetch(org.hibernate.annotations.FetchMode.SUBSELECT)
@OneToMany(targetEntity = Violation.class, fetch = FetchType.LAZY, cascade = CascadeType.ALL)
@JoinColumn(name = "guarantee_term_id", referencedColumnName = "id", nullable = true)
public List<IViolation> getViolations() {
    return violations;
}
项目:sla-framework    文件:GuaranteeTerm.java   
@Override
@Fetch(org.hibernate.annotations.FetchMode.SUBSELECT)
@OneToMany(targetEntity = Penalty.class, fetch = FetchType.LAZY, cascade = CascadeType.ALL)
@JoinColumn(name = "guarantee_term_id", referencedColumnName = "id", nullable = true)
public List<IPenalty> getPenalties() {
    return penalties;
}
项目:sla-framework    文件:Violation.java   
@Override
@Fetch(org.hibernate.annotations.FetchMode.SUBSELECT)
@OneToMany(targetEntity = Breach.class, fetch = FetchType.EAGER, cascade = CascadeType.ALL)
@JoinColumn(name = "violation_id", referencedColumnName = "id", nullable = true)
public List<IBreach> getBreaches() {
    return breaches;
}
项目:WebBoxter    文件:QuestionTagEntity.java   
@Id
@Fetch(FetchMode.JOIN)
@ManyToOne(cascade = {CascadeType.MERGE, CascadeType.REFRESH, CascadeType.PERSIST})
@JoinColumn(name = "TAG_NAME", referencedColumnName = "NAME", nullable = false)
public TagEntity getTagByTagName() {
    return tagByTagName;
}
项目:omr    文件:ExamVO.java   
/**
 * @return the questionnaires
 */
@JazzProp(name = "Questionários",searchable=false,listable=false)
@ManyToMany(cascade = CascadeType.DETACH, fetch=FetchType.EAGER)
@NotEmpty(message="Um exame deve possuir ao menos um questionário selecionado!")
@Fetch(FetchMode.SELECT)
public List<QuestionnaireVO> getQuestionnaires() {
    return questionnaires;
}
项目:testcube-server    文件:TestPlan.java   
@Override
@ManyToOne(fetch = FetchType.EAGER, optional = false)
@JoinColumn(updatable = false)
@Fetch(FetchMode.SELECT)
@ForeignKey(name = "FK_TESTPLANS_USERS")
@Index(name = "IDX_TESTPLANS_USERS")
public User getCreatedBy() {
    return (User) super.getCreatedBy();
}
项目:testcube-server    文件:TestPlan.java   
@Override
@ManyToOne(fetch = FetchType.EAGER)
@Fetch(FetchMode.SELECT)
@ForeignKey(name = "FK_TESTPLANS_VERSIONS")
@Index(name = "FK_TESTPLANS_VERSIONS")
public Version getProductVersion() {
    return (Version) super.getProductVersion();
}
项目:testcube-server    文件:TestPlan.java   
@Override
@SuppressWarnings("unchecked")
@ManyToMany(fetch = FetchType.EAGER)
@JoinTable(name = "CUB_TESTPLANS_ATTACHMENTS")
@Fetch(FetchMode.SELECT)
public List<PlanAttachment> getAttachments() {
    return super.getAttachments();
}
项目:testcube-server    文件:Environment.java   
@Override
@ManyToOne(fetch = FetchType.EAGER, optional = false)
@Fetch(FetchMode.SELECT)
@ForeignKey(name = "FK_ENVIRONMENTS_PRODUCTS")
@Index(name = "IDX_ENVIRONMENTS_PRODUCTS")
public Product getProduct() {
    return (Product) super.getProduct();
}
项目:omr    文件:QuestionVO.java   
/**
 * @return the criterionVOs
@Sort(type=SortType.COMPARATOR,comparator=CriterionComparator.class)
 */
@JazzProp(name="Critérios",renderer=JazzRenderer.GRID)
@OneToMany(cascade=CascadeType.ALL, fetch=FetchType.EAGER, orphanRemoval=true)//atribui o orphan removal aa colecao de criterios. 20h 170611. os criterios tem de ser apagados
@JoinColumn(name="fk_question")
@Fetch(FetchMode.SELECT)
@Valid
public Set<AbstractCriterionVO> getCriterionVOs() {

    return criterionVOs;
}