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:org.dspace.orm.entity.Bitstream.java
@OneToMany(fetch = FetchType.LAZY, mappedBy = "logo") public List<Collection> getCollections() { return collections; }
From source file:net.groupbuy.entity.OrderItem.java
/** * ?? * * @return ? */ @ManyToOne(fetch = FetchType.LAZY) public Product getProduct() { return product; }
From source file:com.infinities.keystone4j.model.identity.User.java
@XmlTransient @ManyToOne(fetch = FetchType.LAZY) @JoinColumn(name = "DEFAULTPROJECTID", nullable = false) public Project getDefaultProject() { return defaultProject; }
From source file:org.dspace.orm.entity.Eperson.java
@ManyToMany(fetch = FetchType.LAZY, cascade = CascadeType.DETACH) @JoinTable(name = "subscription", joinColumns = { @JoinColumn(name = "eperson_id", nullable = false) }, inverseJoinColumns = { @JoinColumn(name = "collection_id", nullable = false) }) public List<Collection> getCollections() { return collections; }
From source file:edu.ku.brc.specify.datamodel.InstitutionNetwork.java
/** * @return the contacts//from w w w .j a v a 2 s. com */ @OneToMany(cascade = {}, fetch = FetchType.LAZY, mappedBy = "instTechContact") @org.hibernate.annotations.Cascade({ org.hibernate.annotations.CascadeType.ALL, org.hibernate.annotations.CascadeType.DELETE_ORPHAN }) public Set<Agent> getContacts() { return contacts; }
From source file:gov.nih.nci.protexpress.domain.protocol.ProtocolApplication.java
/** * Gets the outputs./*from ww w .j a v a 2 s.c om*/ * * @return the outputs. */ @OneToMany(fetch = FetchType.LAZY, cascade = CascadeType.ALL) @JoinTable(name = "protapp_outputs", joinColumns = { @JoinColumn(name = "protapp_id") }, inverseJoinColumns = { @JoinColumn(name = "output_id") }) public List<InputOutputObject> getOutputs() { return outputs; }
From source file:gov.nih.nci.cabig.caaers.domain.TreatmentAssignment.java
@OneToMany(mappedBy = "treatmentAssignment", fetch = FetchType.LAZY, orphanRemoval = true) @OrderBy/*from w ww .j a v a 2s. c o m*/ @Cascade(value = { CascadeType.ALL }) @Fetch(value = org.hibernate.annotations.FetchMode.SUBSELECT) public List<TreatmentAssignmentStudyIntervention> getTreatmentAssignmentStudyInterventions() { return treatmentAssignmentStudyInterventions; }
From source file:gov.nih.nci.caarray.domain.file.CaArrayFile.java
/** * @return the children//from w w w .j a v a2s.co m */ @OneToMany(mappedBy = "parent", fetch = FetchType.LAZY) @Cascade({ org.hibernate.annotations.CascadeType.ALL }) public Set<CaArrayFile> getChildren() { return children; }
From source file:onl.netfishers.netshot.device.DeviceGroup.java
/** * Gets the check compliance tasks.//ww w . ja va 2s . co m * * @return the check compliance tasks */ @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "deviceGroup") public List<CheckGroupComplianceTask> getCheckComplianceTasks() { return checkComplianceTasks; }
From source file:edu.ku.brc.specify.datamodel.Container.java
@OneToMany(cascade = {}, fetch = FetchType.LAZY, mappedBy = "containerOwner") @Cascade({ CascadeType.SAVE_UPDATE, CascadeType.MERGE, CascadeType.LOCK }) public Set<CollectionObject> getCollectionObjectKids() { return this.collectionObjectKids; }