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.harvard.med.screensaver.model.AttachedFile.java
@ManyToOne(fetch = FetchType.LAZY, cascade = { CascadeType.PERSIST, CascadeType.MERGE }) @JoinColumn(name = "reagentId", nullable = true, updatable = false) @org.hibernate.annotations.Immutable/*from w ww . j a v a 2 s.com*/ @org.hibernate.annotations.ForeignKey(name = "fk_attached_file_to_reagent") @org.hibernate.annotations.LazyToOne(value = org.hibernate.annotations.LazyToOneOption.PROXY) @ToOne(hasNonconventionalSetterMethod = true /* mutually-exclusive parenting relationships */) public Reagent getReagent() { return _reagent; }
From source file:edu.ku.brc.specify.datamodel.Appraisal.java
/** * @return the accession/*from ww w . j a va 2s .c o m*/ */ @ManyToOne(cascade = {}, fetch = FetchType.LAZY) @Cascade({ CascadeType.SAVE_UPDATE, CascadeType.MERGE, CascadeType.LOCK }) @JoinColumn(name = "AccessionID", unique = false, nullable = true, insertable = true, updatable = true) public Accession getAccession() { return accession; }
From source file:com.hmsinc.epicenter.model.workflow.Investigation.java
/** * @return the assignedTo/*from ww w. j a v a 2 s . co m*/ */ @ManyToOne(cascade = { CascadeType.MERGE, CascadeType.PERSIST }, fetch = FetchType.LAZY) @JoinColumn(name = "ID_APP_USER_ASSIGNED_TO", unique = false, nullable = true, insertable = true, updatable = true) @org.hibernate.annotations.ForeignKey(name = "FK_INVESTIGATION_2") @Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE) public EpiCenterUser getAssignedTo() { return assignedTo; }
From source file:com.lingxiang2014.entity.Article.java
@ManyToMany(fetch = FetchType.LAZY) @JoinTable(name = "lx_article_tag") @OrderBy("order asc") public Set<Tag> getTags() { return tags; }
From source file:edu.northwestern.bioinformatics.studycalendar.domain.PlannedActivity.java
@ManyToOne(fetch = FetchType.LAZY) @JoinColumn(name = "period_id") public Period getPeriod() { return getParent(); }
From source file:gov.nih.nci.cabig.caaers.domain.TreatmentInformation.java
/** * Gets the treatment assignment./*from w w w .j ava2s.c o m*/ * * @return the treatment assignment */ @OneToOne(fetch = FetchType.LAZY) @JoinColumn(name = "treatment_assignment_id") @Cascade(value = { CascadeType.LOCK }) public TreatmentAssignment getTreatmentAssignment() { return treatmentAssignment; }
From source file:edu.ku.brc.specify.datamodel.FieldNotebook.java
/** * @return the ownerAgent/*from w w w .j ava 2s. c o m*/ */ @ManyToOne(cascade = {}, fetch = FetchType.LAZY) @JoinColumn(name = "AgentID", unique = false, nullable = false, insertable = true, updatable = true) public Agent getOwnerAgent() { return ownerAgent; }
From source file:com.hmsinc.epicenter.model.workflow.WorkflowState.java
/** * @return the transitions//from w w w. j a v a 2 s . c om */ @OneToMany(cascade = { CascadeType.ALL }, fetch = FetchType.LAZY, mappedBy = "fromState") @Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE) @Sort(type = SortType.NATURAL) public SortedSet<WorkflowTransition> getTransitions() { return transitions; }
From source file:ch.systemsx.cisd.openbis.generic.shared.dto.MaterialPE.java
@OneToMany(fetch = FetchType.LAZY, cascade = CascadeType.ALL, mappedBy = "entity") @Cascade(value = org.hibernate.annotations.CascadeType.DELETE_ORPHAN) @Cache(usage = CacheConcurrencyStrategy.READ_WRITE) @IndexedEmbedded(prefix = SearchFieldConstants.PREFIX_PROPERTIES) @Fetch(FetchMode.SUBSELECT)/*from w ww. j a va 2 s. com*/ private Set<MaterialPropertyPE> getMaterialProperties() { return properties; }
From source file:ch.systemsx.cisd.openbis.generic.shared.dto.PersonPE.java
@OneToMany(fetch = FetchType.LAZY, mappedBy = "personInternal", cascade = CascadeType.ALL) private final Set<RoleAssignmentPE> getRoleAssignmentsInternal() { return roleAssignments; }