|
JADE Java Persistence API 1.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | ||||||||
@Retention(value=RUNTIME) @Target(value=METHOD) public @interface DbProperty
The DbProperty annotation is applied to virtual Java properties. It must be applied to the getter method. 'get' and 'set' methods are required to exist. The property values are obtained from the equivalent JADE object on each access, and updated back to this JADE object on each set. The JADE object, if persistent, is not saved back to the database until an EntityTransaction.commit() is done.
| Optional Element Summary | |
|---|---|
int |
length
length is required only for the JADE types Binary, Decimal, and String. |
java.lang.String |
name
Optional, the JADE name for the property. |
int |
scale
scale is required only for the JADE type of Decimal. |
java.lang.String |
type
type allows the default JADE type corresponding to the Java type to be overridden. |
public abstract java.lang.String name
public abstract int length
public abstract int scale
public abstract java.lang.String type
|
JADE Java Persistence API 1.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | ||||||||