public void setBatchSize(BatchSize sizeAnn) { if ( sizeAnn != null ) { batchSize = sizeAnn.size(); } else { batchSize = -1; } }
@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="serv_hotel_id") public ServHotel getServHotel() { return this.servHotel; }
@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="user_details_id") public UserDetail getUserDetail() { return this.userDetail; }
@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="shop_permission_id") public ShopPermission getShopPermission() { return this.shopPermission; }
@Fetch(FetchMode.JOIN) @BatchSize(size = 100) @ManyToOne(fetch=FetchType.EAGER, optional = true) @JoinColumn(name="serv_hotel_room_id") public ServHotelRoom getServHotelRoom() { return this.servHotelRoom; }
@ElementCollection(fetch = FetchType.LAZY) @CollectionTable(name = "TASK_DATA_DEPENDENCIES", joinColumns = { @JoinColumn(name = "JOB_ID", referencedColumnName = "TASK_ID_JOB"), @JoinColumn(name = "TASK_ID", referencedColumnName = "TASK_ID_TASK") }, indexes = { @Index(name = "TASK_DATA_DEP_JOB_ID", columnList = "JOB_ID"), @Index(name = "TASK_DATA_DEP_TASK_ID", columnList = "TASK_ID"), }) @BatchSize(size = 100) public List<DBTaskId> getDependentTasks() { return dependentTasks; }
@ElementCollection(fetch = FetchType.LAZY) @CollectionTable(name = "TASK_DATA_JOINED_BRANCHES", joinColumns = { @JoinColumn(name = "JOB_ID", referencedColumnName = "TASK_ID_JOB"), @JoinColumn(name = "TASK_ID", referencedColumnName = "TASK_ID_TASK") }, indexes = { @Index(name = "TASK_DATA_JB_JOB_ID", columnList = "JOB_ID"), @Index(name = "TASK_DATA_JB_TASK_ID", columnList = "TASK_ID"), }) @BatchSize(size = 100) public List<DBTaskId> getJoinedBranches() { return joinedBranches; }
@OneToMany(fetch = FetchType.LAZY, cascade = CascadeType.ALL, orphanRemoval = true, mappedBy = "jobData") @Fetch(FetchMode.SELECT) @BatchSize(size = 10) @MapKey(name = "jobId") @PrimaryKeyJoinColumn(name = "JOB_ID") public List<JobContent> getJobContent() { return jobContent; }
/** * @return the additionalOrganismNameCollection */ @ManyToMany(fetch = FetchType.LAZY) @Cascade(org.hibernate.annotations.CascadeType.SAVE_UPDATE) @BatchSize(size = AbstractCaArrayObject.DEFAULT_BATCH_SIZE) public Set<AdditionalOrganismName> getAdditionalOrganismNameCollection() { return additionalOrganismNameCollection; }
/** * Gets the roles. * * @return the roles */ @ManyToMany(fetch = FetchType.LAZY) @BatchSize(size = AbstractCaArrayObject.DEFAULT_BATCH_SIZE) @JoinTable(name = "experimentcontactrole", joinColumns = { @JoinColumn(name = "experimentcontact_id") }, inverseJoinColumns = { @JoinColumn(name = "role_id") }) @ForeignKey(name = "investcont_contact_fk", inverseName = "investcont_role_fk") public Set<Term> getRoles() { return roles; }
/** * Gets the assay type for this Experiment. * * @return the assay type */ @ManyToMany(fetch = FetchType.LAZY) @JoinColumn(name = "experiment") @ForeignKey(name = "experiment_assaytypes_exp_fk", inverseName = "experiment_assaytypes_at_fk") @AttributePolicy(allow = SecurityPolicy.BROWSE_POLICY_NAME) @Sort(type = SortType.NATURAL) @BatchSize(size = AbstractCaArrayObject.DEFAULT_BATCH_SIZE) public SortedSet<AssayType> getAssayTypes() { return this.assayTypes; }
/** * Gets the experimentContacts. * * @return the experimentContacts */ @OneToMany @IndexColumn(name = "indx") @JoinColumn(name = "experiment") @BatchSize(size = AbstractCaArrayObject.DEFAULT_BATCH_SIZE) @Cascade({ org.hibernate.annotations.CascadeType.SAVE_UPDATE, org.hibernate.annotations.CascadeType.DELETE, org.hibernate.annotations.CascadeType.DELETE_ORPHAN }) @AttributePolicy(allow = SecurityPolicy.BROWSE_POLICY_NAME) public List<ExperimentContact> getExperimentContacts() { return this.experimentContacts; }
/** * Gets the assay type for this Experiment. * * @return the assay type */ @ManyToMany(fetch = FetchType.LAZY) @JoinColumn(name = "array_design") @ForeignKey(name = "array_design_assaytypes_ad_fk", inverseName = "array_design_assaytypes_at_fk") @AttributePolicy(allow = SecurityPolicy.BROWSE_POLICY_NAME) @Sort(type = SortType.NATURAL) @NotNull @Size(min = 1) @BatchSize(size = AbstractCaArrayObject.DEFAULT_BATCH_SIZE) public SortedSet<AssayType> getAssayTypes() { return this.assayTypes; }
/** * Gets the affiliations. * * @return the affiliations */ @ManyToMany(fetch = FetchType.LAZY) @JoinTable( name = "personorganization", joinColumns = { @JoinColumn(name = "person_id") }, inverseJoinColumns = { @JoinColumn(name = "organization_id") } ) @ForeignKey(name = "perorg_person_fk", inverseName = "perorg_organization_fk") @Cascade(org.hibernate.annotations.CascadeType.SAVE_UPDATE) @BatchSize(size = AbstractCaArrayObject.DEFAULT_BATCH_SIZE) public Set<Organization> getAffiliations() { return this.affiliations; }
/** * Gets the providers. * * @return the providers */ @ManyToMany(fetch = FetchType.LAZY) @LazyCollection(LazyCollectionOption.TRUE) @JoinTable( name = "sourceprovider", joinColumns = { @javax.persistence.JoinColumn(name = DEFAULT_FK_ID) }, inverseJoinColumns = { @javax.persistence.JoinColumn(name = "contact_id") } ) @ForeignKey(name = "sourceprovider_source_fk", inverseName = "sourceprovider_provider_fk") @BatchSize(size = AbstractCaArrayObject.DEFAULT_BATCH_SIZE) @Cascade(org.hibernate.annotations.CascadeType.SAVE_UPDATE) public Set<AbstractContact> getProviders() { return providers; }
/** * Never use this method. It will run out of memory. Instead use UserDAS().findByEntityId * * @return */ @OneToMany(cascade = CascadeType.ALL, mappedBy = "company") @LazyCollection(value = LazyCollectionOption.EXTRA) @BatchSize(size = 100) public Set<UserDTO> getBaseUsers() { return this.baseUsers; }
public void setBatchSize(BatchSize batchSize) { this.batchSize = batchSize == null ? -1 : batchSize.size(); }
/** * @return validation messages */ @OneToMany(fetch = FetchType.LAZY, cascade = CascadeType.ALL) @BatchSize(size = AbstractCaArrayObject.DEFAULT_BATCH_SIZE) public Set<ValidationMessage> getMessageSet() { return this.messageSet; }