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:com.marand.thinkmed.medications.model.impl.MedicationCustomGroupMemberImpl.java
@Override @ManyToOne(targetEntity = MedicationCustomGroupImpl.class, fetch = FetchType.LAZY, optional = false) public MedicationCustomGroup getMedicationCustomGroup() { return medicationCustomGroup; }
From source file:com.dhenton9000.birt.persistence.entities.OrderDetails.java
@ManyToOne(fetch = FetchType.LAZY, optional = false) @JoinColumn(name = "ORDERNUMBER", referencedColumnName = "ORDERNUMBER", nullable = false, insertable = false, updatable = false) @JsonBackReference//from w w w.j a va 2 s. c o m public Orders getOrders() { return this.orders; }
From source file:ch.systemsx.cisd.openbis.generic.shared.dto.SampleTypePE.java
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "entityTypeInternal") @Cascade(value = org.hibernate.annotations.CascadeType.DELETE_ORPHAN) private Set<SampleTypePropertyTypePE> getSampleTypePropertyTypesInternal() { return sampleTypePropertyTypes; }
From source file:org.dspace.orm.entity.WorkFlowItem.java
@ManyToOne(fetch = FetchType.LAZY) @JoinColumn(name = "owner", nullable = true) public Eperson getOwner() { return owner; }
From source file:com.marand.thinkmed.medications.model.impl.AtcClassificationImpl.java
@Override @ManyToOne(targetEntity = AtcClassificationImpl.class, fetch = FetchType.LAZY) public AtcClassification getTopParent() { return topParent; }
From source file:gov.ca.cwds.data.legacy.cms.entity.CountyLicenseCase.java
@NotFound(action = NotFoundAction.IGNORE) @ManyToOne(fetch = FetchType.LAZY) @JoinColumn(name = "FKSTFPERST", referencedColumnName = "IDENTIFIER") public StaffPerson getStaffPerson() { return staffPerson; }
From source file:org.meruvian.yama.repository.jpa.role.JpaRole.java
@JsonIgnore @OneToMany(mappedBy = "role", cascade = { CascadeType.REMOVE }, fetch = FetchType.LAZY) public List<JpaUserRole> getUsers() { return users; }
From source file:com.marand.thinkmed.medications.model.impl.MedicationRouteLinkImpl.java
@Override @ManyToOne(targetEntity = MedicationRouteImpl.class, fetch = FetchType.LAZY, optional = false) public MedicationRoute getRoute() { return route; }
From source file:com.sccl.attech.modules.message.entity.AlarmRecords.java
@ManyToOne(fetch = FetchType.LAZY) @JoinColumn(name = "company_id") @NotFound(action = NotFoundAction.IGNORE) @JsonIgnore//ww w .j a va 2s .c om @NotNull @ExcelField(title = "?", align = 2, sort = 30) public Office getCompany() { return company; }
From source file:net.groupbuy.entity.Attribute.java
/** * ?/* w w w .jav a 2 s . c om*/ * * @return */ @NotNull(groups = Save.class) @ManyToOne(fetch = FetchType.LAZY) @JoinColumn(nullable = false, updatable = false) public ProductCategory getProductCategory() { return productCategory; }