List of usage examples for javax.persistence FetchType LAZY
FetchType LAZY
To view the source code for javax.persistence FetchType LAZY.
Click Source Link
From source file:edu.uiowa.icts.bluebutton.domain.LabTestRange.java
/*****labTest*****/ @ManyToOne(fetch = FetchType.LAZY, targetEntity = LabTest.class) @JoinColumn(name = "lab_test_id", nullable = true) public LabTest getLabTest() { return labTest; }
From source file:com.infinities.skyport.entity.Organization.java
@OneToMany(fetch = FetchType.LAZY, mappedBy = "organization", cascade = CascadeType.REMOVE) public Set<Role> getRoles() { return roles; }
From source file:edu.ku.brc.specify.datamodel.Author.java
/** * * Reference record the Agent authored *///from ww w . j a v a 2s.c o m @ManyToOne(cascade = {}, fetch = FetchType.LAZY) @JoinColumn(name = "ReferenceWorkID", unique = false, nullable = false, insertable = true, updatable = true) public ReferenceWork getReferenceWork() { return this.referenceWork; }
From source file:it.jugpadova.po.Speaker.java
@Lob @Basic(fetch = FetchType.LAZY) @Column(length = 1048576) public byte[] getPicture() { return picture; }
From source file:net.shopxx.entity.ShippingMethod.java
@ManyToMany(fetch = FetchType.LAZY) @JoinTable(name = "xx_shipping_payment_method") @OrderBy("order asc") public Set<PaymentMethod> getPaymentMethods() { return paymentMethods; }
From source file:org.dspace.orm.entity.EpersonGroup.java
@ManyToMany(fetch = FetchType.LAZY, cascade = CascadeType.DETACH) @JoinTable(name = "group2groupcache", joinColumns = { @JoinColumn(name = "child_id", nullable = false) }, inverseJoinColumns = { @JoinColumn(name = "parent_id", nullable = false) }) public List<EpersonGroup> getAllParents() { return allParents; }
From source file:com.impetus.ankush.common.domain.Cluster.java
/** * @return the haServices//ww w .ja v a 2 s . c o m */ @OneToMany(mappedBy = CLUSTER_ID, fetch = FetchType.LAZY, cascade = CascadeType.REMOVE) @JsonIgnore public List<HAService> getHaServices() { return haServices; }
From source file:com.hmsinc.epicenter.model.permission.AuthorizedRegion.java
/** * @return the grantedBy/* ww w. j a va2s . c o m*/ */ @ManyToOne(cascade = { CascadeType.PERSIST, CascadeType.MERGE }, fetch = FetchType.LAZY) @JoinColumn(name = "ID_GRANTING_ORGANIZATION", unique = false, nullable = false, insertable = true, updatable = true) @Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE) @org.hibernate.annotations.ForeignKey(name = "FK_AUTHORIZED_REGION_3") public Organization getGrantedBy() { return grantedBy; }
From source file:gov.nih.nci.caarray.domain.project.ExperimentContact.java
/** * Gets the roles.//from w ww.j a va 2 s. c o m * * @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; }
From source file:com.dhenton9000.birt.persistence.entities.ProductLines.java
@OneToMany(fetch = FetchType.LAZY, cascade = CascadeType.ALL) @JoinColumn(name = "ID", nullable = false) @JsonManagedReference/*from ww w. j av a 2 s .co m*/ public Set<Products> getProducts() { return this.products; }