Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
33 | PointedEar | 1 | //$Id: $ |
2 | package org.hibernate.annotations; |
||
3 | |||
4 | /** |
||
5 | * Lazy options available for a ToOne association |
||
6 | * |
||
7 | * @author Emmanuel Bernard |
||
8 | */ |
||
9 | public enum LazyToOneOption { |
||
10 | /** eagerly load the association */ |
||
11 | FALSE, |
||
12 | /** |
||
13 | * Lazy, give back a proxy which will be loaded when the state is requested |
||
14 | * This should be the prefered option |
||
15 | */ |
||
16 | PROXY, |
||
17 | /** Lazy, give back the real object loaded when a reference is requested |
||
18 | * (Bytecode enhancement is mandatory for this option, fall back to PROXY |
||
19 | * if the class is not enhanced) |
||
20 | * This option should be avoided unless you can't afford the use of proxies |
||
21 | */ |
||
22 | NO_PROXY |
||
23 | } |