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:net.shopxx.entity.Shipping.java
@NotNull @ManyToOne(fetch = FetchType.LAZY) @JoinColumn(name = "orders", nullable = false, updatable = false) public Order getOrder() { return order; }
From source file:edu.ku.brc.specify.datamodel.CollectingEventAttribute.java
@OneToMany(cascade = {}, fetch = FetchType.LAZY, mappedBy = "collectingEventAttribute") public Set<CollectingEvent> getCollectingEvents() { return this.collectingEvents; }
From source file:com.impetus.ankush.common.domain.Cluster.java
/** * Gets the events./*from w w w . ja v a2 s . co m*/ * * @return the events */ @OneToMany(mappedBy = CLUSTER_ID, fetch = FetchType.LAZY, cascade = CascadeType.REMOVE) @JsonIgnore public List<Event> getEvents() { return events; }
From source file:com.hmsinc.epicenter.model.health.PatientDetail.java
@ManyToOne(fetch = FetchType.LAZY) @JoinColumn(name = "ID_GENDER", unique = false, nullable = false, insertable = true, updatable = true) @org.hibernate.annotations.ForeignKey(name = "FK_PATIENT_DETAIL_2") @Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE) public Gender getGender() { return this.gender; }
From source file:com.marand.thinkmed.medications.model.impl.MedicationVersionImpl.java
@Override @ManyToOne(targetEntity = MedicationImpl.class, fetch = FetchType.LAZY) public Medication getMedication() { return medication; }
From source file:ch.systemsx.cisd.openbis.generic.shared.dto.ProjectPE.java
@OneToMany(fetch = FetchType.LAZY, mappedBy = "projectInternal") @ContainedIn private List<ExperimentPE> getExperimentsInternal() { return experiments; }
From source file:org.dspace.orm.entity.Collection.java
@ManyToOne(fetch = FetchType.LAZY) @JoinColumn(name = "admin", nullable = true) public EpersonGroup getAdmin() { return admin; }
From source file:com.dhenton9000.birt.persistence.entities.Orders.java
/** * @return the customerNumber//w w w. j a v a 2 s. c o m */ @ManyToOne(fetch = FetchType.LAZY, optional = false) @JoinColumn(name = "CUSTOMERNUMBER", referencedColumnName = "CUSTOMERNUMBER", nullable = false, insertable = false, updatable = false) @JsonBackReference public Customers getCustomer() { return customer; }
From source file:com.dp2345.entity.ProductCategory.java
/** * ?/*from ww w. j ava 2s. c o m*/ * * @return */ @OneToMany(mappedBy = "parent", fetch = FetchType.LAZY) @OrderBy("order asc") public Set<ProductCategory> getChildren() { return children; }
From source file:com.hmsinc.epicenter.model.surveillance.Anomaly.java
/** * @return the task/*from w w w.j a va 2s. c o m*/ */ @ManyToOne(cascade = { CascadeType.ALL }, fetch = FetchType.LAZY) @JoinColumn(name = "ID_SURVEILLANCE_TASK", unique = false, nullable = false, insertable = true, updatable = true) @org.hibernate.annotations.ForeignKey(name = "FK_ANOMALY_1") public SurveillanceTask getTask() { return task; }