|
JADE Java Persistence API 1.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | ||||||||
@Retention(value=RUNTIME) @Target(value=FIELD) public @interface DbField
The DbField annotation is applied to regular Java properties. It can be applied to the property itself, or to the corresponding getter method. 'get' and 'set' methods must exist. The property values for an existing persisted object are populated when the Java object is first created from the JADE equivalent object. For a new Java object, they are populated by user code and updated to the equivalent JADE object when an EntityManager.persist(object) method is called. The property must be a primitive property (which includes Calendar and String), not a reference to another Java class and notto a collection
| Optional Element Summary | |
|---|---|
FetchType |
fetch
|
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
public abstract FetchType fetch
|
JADE Java Persistence API 1.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | ||||||||