@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; }
@OneToMany(cascade = CascadeType.ALL, mappedBy = "bundle") @Fetch(value = FetchMode.SELECT) @MapKey(name = "locale") public Map<String, LanguageString> getStrings() { return strings; }
@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; }
@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; }
@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; }
@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; }
@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 @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; }
/** * 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; }
@ElementCollection(targetClass=EAuthority.class,fetch=FetchType.EAGER) @JoinTable(name = "pessoa_autorities") @Enumerated(EnumType.STRING) @Fetch(FetchMode.SELECT) public List<EAuthority> getAuthorities() { return authorities; }
/** * * @return */ @ElementCollection(targetClass=EAuthority.class,fetch=FetchType.EAGER) @JoinTable(name = "grupo_autorities") @Enumerated(EnumType.STRING) @Fetch(FetchMode.SELECT) public List<EAuthority> getAuthorities() { return authorities; }
/** * @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; }
/** * @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; }
@Fetch(FetchMode.JOIN) @BatchSize(size = 100) @ManyToOne(fetch=FetchType.EAGER, optional = true) @JoinColumn(name="tm_mail_newsletter_id") public TmMailNewsletter getTmMailNewsletter() { return this.tmMailNewsletter; }
@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; }
@Fetch(FetchMode.JOIN) @BatchSize(size = 100) @ManyToOne(fetch=FetchType.EAGER, optional = true) @JoinColumn(name="req_serv_hotel_id") public ReqServHotel getReqServHotel() { return this.reqServHotel; }
@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; }
@Fetch(FetchMode.JOIN) @BatchSize(size = 100) @ManyToOne(fetch=FetchType.EAGER, optional = true) @JoinColumn(name="serv_transfers_id") public ServTransfer getServTransfer() { return this.servTransfer; }
@Fetch(FetchMode.JOIN) @BatchSize(size = 100) @ManyToOne(fetch=FetchType.EAGER, optional = true) @JoinColumn(name="tm_contact_id") public TmContact getTmContact() { return this.tmContact; }
@Fetch(FetchMode.JOIN) @BatchSize(size = 100) @ManyToOne(fetch=FetchType.EAGER, cascade = CascadeType.ALL) @JoinColumn(name="contactinformation_id") public InfoContactInformation getInfoContactInformation() { return this.infoContactInformation; }
@Fetch(FetchMode.JOIN) @BatchSize(size = 100) @ManyToOne(fetch=FetchType.EAGER, cascade = CascadeType.ALL) @JoinColumn(name="address_id") public LocationAddress getLocationAddress() { return this.locationAddress; }
@Fetch(FetchMode.JOIN) @BatchSize(size = 100) @ManyToOne(fetch=FetchType.EAGER, cascade = CascadeType.ALL) @JoinColumn(name="payment_details_id") public PaymentDetails getPaymentDetails() { return this.paymentDetails; }
@Fetch(FetchMode.JOIN) @BatchSize(size = 100) @ManyToOne(fetch=FetchType.EAGER, optional = true) @JoinColumn(name="image_id") public TmImage getTmImage() { return this.tmImage; }
@Fetch(FetchMode.JOIN) @BatchSize(size = 100) @ManyToOne(fetch=FetchType.EAGER, optional = true) @JoinColumn(name="doc_documents_id") public DocDocuments getDocDocuments() { return this.docDocuments; }
@Fetch(FetchMode.JOIN) @BatchSize(size = 100) @ManyToOne(fetch=FetchType.EAGER, optional = true) @JoinColumn(name="serv_hotel_id") public ServHotel getServHotel() { return this.servHotel; }
@Fetch(FetchMode.JOIN) @BatchSize(size = 100) @ManyToOne(fetch=FetchType.EAGER, optional = true) @JoinColumn(name="users_id") public Users getUsers() { return this.users; }
@Fetch(FetchMode.JOIN) @BatchSize(size = 100) @ManyToOne(fetch=FetchType.EAGER, optional = true) @JoinColumn(name="info_permission_id") public InfoPermission getInfoPermission() { return this.infoPermission; }
@Fetch(FetchMode.JOIN) @BatchSize(size = 100) @ManyToOne(fetch=FetchType.EAGER, optional = true) @JoinColumn(name="serv_hotel_room_id") public ServHotelRoom getServHotelRoom() { return this.servHotelRoom; }
@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; }
@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; }
@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; }
@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; }
@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; }
/** * @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; }
@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(); }
@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(); }
@Override @SuppressWarnings("unchecked") @ManyToMany(fetch = FetchType.EAGER) @JoinTable(name = "CUB_TESTPLANS_ATTACHMENTS") @Fetch(FetchMode.SELECT) public List<PlanAttachment> getAttachments() { return super.getAttachments(); }
@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(); }
/** * @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; }