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:it.jugpadova.po.JUG.java
@Lob @Basic(fetch = FetchType.LAZY) public byte[] getLogo() { return logo; }
From source file:com.hmsinc.epicenter.model.health.Patient.java
@ManyToOne(fetch = FetchType.LAZY) @JoinColumn(name = "ID_FACILITY", unique = false, nullable = false, insertable = true, updatable = true) @org.hibernate.annotations.ForeignKey(name = "FK_PATIENT_1") @Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE) public Facility getFacility() { return this.facility; }
From source file:com.marand.thinkmed.medications.model.impl.MedicationVersionImpl.java
@Override @ManyToOne(targetEntity = DoseFormImpl.class, fetch = FetchType.LAZY) public DoseForm getDoseForm() { return doseForm; }
From source file:org.dspace.orm.entity.EpersonGroup.java
@ManyToMany(fetch = FetchType.LAZY, cascade = CascadeType.DETACH) @JoinTable(name = "epersongroup2eperson", joinColumns = { @JoinColumn(name = "eperson_group_id", nullable = false) }, inverseJoinColumns = { @JoinColumn(name = "eperson_id", nullable = false) }) public List<Eperson> getEpersons() { return epersons; }
From source file:edu.uiowa.icts.bluebutton.domain.ClinicalDocument.java
/*****person*****/ @ManyToOne(fetch = FetchType.LAZY, targetEntity = Person.class) @JoinColumn(name = "person_id", nullable = true) public Person getPerson() { return person; }
From source file:edu.ku.brc.specify.datamodel.CollectionRelationship.java
/** * //from www. j a v a 2s .co m */ @ManyToOne(cascade = {}, fetch = FetchType.LAZY) @JoinColumn(name = "RightSideCollectionID", unique = false, nullable = false, insertable = true, updatable = true) public CollectionObject getRightSide() { return this.rightSide; }
From source file:com.hmsinc.epicenter.model.surveillance.SurveillanceSet.java
/** * @return the datatype/*from w ww . ja v a 2 s . c o m*/ */ @ManyToOne(cascade = { CascadeType.PERSIST, CascadeType.MERGE }, fetch = FetchType.LAZY) @JoinColumn(name = "ID_DATA_TYPE", unique = false, nullable = false, insertable = true, updatable = true) @ForeignKey(name = "FK_SURVEILLANCE_SET_2") public DataType getDatatype() { return datatype; }
From source file:gov.nih.nci.cabig.caaers.domain.Organization.java
@ManyToOne(fetch = FetchType.LAZY) @JoinColumn(name = "merged_org_id", nullable = true) public Organization getMergedOrganization() { return mergedOrganization; }
From source file:com.hmsinc.epicenter.model.geography.State.java
/** * @return the zipcodes/*from ww w. ja v a 2 s . c om*/ */ @XmlTransient @OneToMany(cascade = { CascadeType.ALL }, fetch = FetchType.LAZY, mappedBy = "state") @Where(clause = "type = 'Z'") @Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE, region = "com.hmsinc.epicenter.model.GeographyCache") @Sort(type = SortType.NATURAL) public Set<Zipcode> getZipcodes() { return zipcodes; }
From source file:com.hmsinc.epicenter.model.workflow.WorkflowTransition.java
/** * @return the fromState//ww w . ja va 2s . c o m */ @ManyToOne(cascade = { CascadeType.ALL }, fetch = FetchType.LAZY) @JoinColumn(name = "ID_STATE_FROM", unique = false, nullable = false, insertable = true, updatable = true) @org.hibernate.annotations.ForeignKey(name = "FK_WORKFLOW_TRANSITION_1") public WorkflowState getFromState() { return fromState; }