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.hmsinc.epicenter.model.health.Interaction.java
@ManyToMany(cascade = { CascadeType.PERSIST, CascadeType.MERGE }, fetch = FetchType.LAZY, targetEntity = Classification.class) @JoinTable(name = "INTERACTION_CLASSIFICATION", joinColumns = { @JoinColumn(name = "ID_INTERACTION") }, inverseJoinColumns = { @JoinColumn(name = "ID_CLASSIFICATION") }) @ForeignKey(name = "FK_INTERACTION_CLASS_1") public Set<Classification> getClassifications() { return this.classifications; }
From source file:gov.nih.nci.cabig.caaers.domain.StudyParticipantAssignment.java
/** * Gets the participant.//from w w w . j a v a 2s . co m * * @return the participant */ @ManyToOne(fetch = FetchType.LAZY) @JoinColumn(name = "participant_id") @Cascade({ CascadeType.LOCK }) public Participant getParticipant() { return participant; }
From source file:com.eryansky.entity.base.User.java
@ManyToMany(cascade = { CascadeType.PERSIST, CascadeType.MERGE }, fetch = FetchType.LAZY) @JoinTable(name = "T_BASE_USER_RESOURCE", joinColumns = { @JoinColumn(name = "USER_ID") }, inverseJoinColumns = { @JoinColumn(name = "RESOURCE_ID") }) // @Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE,region = CacheConstants.HIBERNATE_CACHE_BASE) public List<Resource> getResources() { return resources; }
From source file:gov.nih.nci.caarray.domain.hybridization.Hybridization.java
/** * Gets the rawArrayDatas./*from w w w .j av a2 s .c om*/ * @return the rawArrayData */ @ManyToMany(mappedBy = "hybridizations", targetEntity = AbstractArrayData.class, fetch = FetchType.LAZY) @Where(clause = "discriminator = '" + RawArrayData.DISCRIMINATOR + "'") @Cascade({ CascadeType.SAVE_UPDATE, CascadeType.DELETE }) public Set<RawArrayData> getRawDataCollection() { return this.rawDataCollection; }
From source file:com.dp2345.entity.ProductCategory.java
/** * ??/*from w ww . ja v a 2s .c om*/ * * @return ? */ @OneToMany(mappedBy = "productCategory", fetch = FetchType.LAZY, cascade = CascadeType.REMOVE) @OrderBy("order asc") public Set<ParameterGroup> getParameterGroups() { return parameterGroups; }
From source file:onl.netfishers.netshot.device.DeviceGroup.java
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "deviceGroup") public List<RunDeviceGroupScriptTask> getRunDeviceGroupScriptTasks() { return runDeviceGroupScriptTasks; }
From source file:com.infinities.keystone4j.model.assignment.Role.java
@JsonView(Views.All.class) @OneToMany(fetch = FetchType.LAZY, mappedBy = "role", cascade = CascadeType.ALL) public Set<RoleAssignment> getRoleAssignments() { return roleAssignments; }
From source file:com.infinities.keystone4j.model.assignment.Project.java
@JsonView(Views.All.class) @OneToMany(fetch = FetchType.LAZY, mappedBy = "defaultProject", cascade = CascadeType.ALL) public Set<User> getUsers() { return users; }
From source file:com.hrdb.Employee.java
@JsonIgnoreProperties({ "employeeByManagerId", "employeesForManagerId" }) @JsonInclude(Include.NON_EMPTY)/*from w ww . j a v a 2 s.co m*/ @OneToMany(fetch = FetchType.LAZY, cascade = CascadeType.REMOVE, mappedBy = "employeeByManagerId") public List<Employee> getEmployeesForManagerId() { return this.employeesForManagerId; }
From source file:com.esoft.jdp2p.borrower.model.BorrowerAuthentication.java
@OneToOne(fetch = FetchType.LAZY) @JoinColumn(name = "proof_earnings") public AuthenticationMaterials getProofEarnings() { return this.proofEarnings; }