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

项目:lams    文件:EntityBinder.java   
public void setBatchSize(BatchSize sizeAnn) {
    if ( sizeAnn != null ) {
        batchSize = sizeAnn.size();
    }
    else {
        batchSize = -1;
    }
}
项目: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="serv_hotel_id")
public ServHotel getServHotel() {
    return this.servHotel;
}
项目: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="user_details_id")
public UserDetail getUserDetail() {
    return this.userDetail;
}
项目: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;
}
项目:hotel_shop    文件:RelShopPermission.java   
@Fetch(FetchMode.JOIN)
@BatchSize(size = 100)
@ManyToOne(fetch=FetchType.EAGER, optional = true)
@JoinColumn(name="shop_permission_id")
public ShopPermission getShopPermission() {
    return this.shopPermission;
}
项目: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;
}
项目:hotel_shop    文件:RelServHotelRoomImage.java   
@Fetch(FetchMode.JOIN)
@BatchSize(size = 100)
@ManyToOne(fetch=FetchType.EAGER, optional = true)
@JoinColumn(name="image_id")
public TmImage getTmImage() {
    return this.tmImage;
}
项目:scheduling    文件:TaskData.java   
@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;
}
项目:scheduling    文件:TaskData.java   
@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;
}
项目:scheduling    文件:JobData.java   
@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;
}
项目:caarray    文件:Organism.java   
/**
 * @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;
}
项目:caarray    文件:ExperimentContact.java   
/**
 * 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;
}
项目:caarray    文件:Experiment.java   
/**
 * 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;
}
项目:caarray    文件:Experiment.java   
/**
 * 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;
}
项目:caarray    文件:ArrayDesign.java   
/**
 * 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;
}
项目:caarray    文件:Person.java   
/**
 * 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;
}
项目:caarray    文件:Source.java   
/**
 * 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;
}
项目:replyit-master-3.2-final    文件:CompanyDTO.java   
/**
 * 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;
}
项目:lams    文件:CollectionBinder.java   
public void setBatchSize(BatchSize batchSize) {
    this.batchSize = batchSize == null ? -1 : batchSize.size();
}
项目:caarray    文件:FileValidationResult.java   
/**
 * @return validation messages
 */
@OneToMany(fetch = FetchType.LAZY, cascade = CascadeType.ALL)
@BatchSize(size = AbstractCaArrayObject.DEFAULT_BATCH_SIZE)
public Set<ValidationMessage> getMessageSet() {
    return this.messageSet;
}