Example usage for org.hibernate.annotations LazyToOneOption PROXY

List of usage examples for org.hibernate.annotations LazyToOneOption PROXY

Introduction

In this page you can find the example usage for org.hibernate.annotations LazyToOneOption PROXY.

Prototype

LazyToOneOption PROXY

To view the source code for org.hibernate.annotations LazyToOneOption PROXY.

Click Source Link

Document

Lazy, give back a proxy which will be loaded when the state is requested.

Usage

From source file:gov.nih.nci.caarray.domain.sample.AbstractCharacteristic.java

License:BSD License

/**
 * @return the abstractBioMaterial// w w  w.  j av a2 s .  co  m
 */
@ManyToOne
@LazyToOne(LazyToOneOption.PROXY)
@ForeignKey(name = "characteristic_biomaterial_fk")
public AbstractBioMaterial getBioMaterial() {
    return bioMaterial;
}