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.netxforge.oss2.model.OnmsAtInterface.java
@ManyToOne(optional = false, fetch = FetchType.LAZY) @JoinColumn(name = "nodeId") @XmlElement(name = "nodeId") @XmlIDREF// w w w. j a va 2 s. c o m public OnmsNode getNode() { return m_node; }
From source file:com.marand.thinkmed.medications.model.impl.MedicationVersionImpl.java
@Override @ManyToOne(targetEntity = AtcClassificationImpl.class, fetch = FetchType.LAZY) public AtcClassification getAtcClassification() { return atcClassification; }
From source file:com.infinities.keystone4j.model.catalog.Endpoint.java
@XmlTransient @ManyToOne(fetch = FetchType.LAZY) @JoinColumn(name = "SERVICEID", nullable = false) public Service getService() { return service; }
From source file:com.hmsinc.epicenter.model.health.Interaction.java
@ManyToOne(cascade = { CascadeType.ALL }, fetch = FetchType.LAZY) @JoinColumn(name = "ID_PATIENT", unique = false, nullable = false, insertable = true, updatable = true) @org.hibernate.annotations.ForeignKey(name = "FK_INTERACTION_2") public Patient getPatient() { return this.patient; }
From source file:com.jeefuse.system.security.model.GsysRole.java
/** * ------------------------------------------------------------------------ * gsysRelRoleResources/* w w w. jav a 2s . c om*/ * ------------------------------------------------------------------------ * @generated */ @OneToMany(fetch = FetchType.LAZY, mappedBy = "gsysRole", cascade = CascadeType.REMOVE) public List<GsysRelRoleResource> getGsysRelRoleResources() { if (this.gsysRelRoleResources == null) { this.gsysRelRoleResources = new ArrayList<GsysRelRoleResource>(); } return gsysRelRoleResources; }
From source file:com.esoft.jdp2p.borrower.model.BorrowerAuthentication.java
@OneToOne(fetch = FetchType.LAZY) @JoinColumn(name = "id_card_photo") public AuthenticationMaterials getIdCardPhoto() { return this.idCardPhoto; }
From source file:com.impetus.ankush.common.domain.Cluster.java
/** * Gets the configurations.//from w ww.j a va 2 s . c o m * * @return the configurations */ @OneToMany(mappedBy = CLUSTER_ID, fetch = FetchType.LAZY, cascade = CascadeType.REMOVE) @JsonIgnore public List<Configuration> getConfigurations() { return configurations; }
From source file:com.sccl.attech.modules.sys.entity.Office.java
@ManyToOne(fetch = FetchType.LAZY) @JoinColumn(name = "parent_id") @NotFound(action = NotFoundAction.IGNORE) @JsonIgnore//from ww w. jav a 2 s .c o m @ExcelField(title = "", align = 2, sort = 30) public Office getParent() { return parent; }
From source file:org.dspace.orm.entity.Collection.java
@ManyToOne(fetch = FetchType.LAZY) @JoinColumn(name = "workflow_step_2", nullable = true) public EpersonGroup getWorkflowStep2() { return workflowStep2; }
From source file:org.dspace.orm.entity.EpersonGroup.java
@ManyToMany(fetch = FetchType.LAZY, cascade = CascadeType.DETACH) @JoinTable(name = "epersongroup2workspaceitem", joinColumns = { @JoinColumn(name = "eperson_group_id", nullable = false) }, inverseJoinColumns = { @JoinColumn(name = "workspace_item_id", nullable = false) }) public List<WorkSpaceItem> getWorkSpaceItems() { return workSpaceItems; }