Example usage for org.hibernate.annotations LazyToOneOption NO_PROXY

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

Introduction

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

Prototype

LazyToOneOption NO_PROXY

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

Click Source Link

Document

Lazy, give back the real object loaded when a reference is requested.

Usage

From source file:org.xchain.namespaces.hibernate.test.om.UserNote.java

License:Apache License

@ManyToOne
@LazyToOne(LazyToOneOption.NO_PROXY)
@Fetch(FetchMode.SELECT)
public User getUser() {
    return user;
}