JADE Java Persistence API
1.0

com.jadeworld.jade.persistence
Annotation Type DbField


@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

Author:
JADE Development Centre, Jade Software Corporation Ltd.

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.
 

name

public abstract java.lang.String name
Optional, the JADE name for the property. Defaults to the Java name. JADE names are limited to 30 characters maximum and must have the first character as lowercase.

Default:
""

length

public abstract int length
length is required only for the JADE types Binary, Decimal, and String.

Default:
-1

scale

public abstract int scale
scale is required only for the JADE type of Decimal.

Default:
0

type

public abstract java.lang.String type
type allows the default JADE type corresponding to the Java type to be overridden. For example, int equates to JADE Integer but can be overridden to be Integer64.

Default:
""

fetch

public abstract FetchType fetch
Default:
EAGER

JADE Java Persistence API
1.0

Copyright © 2007 Jade Software Corporation