JADE Java Persistence API
1.0

com.jadeworld.jade.persistence
Annotation Type DbProperty


@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.

Author:
JADE Development Centre, Jade Software Corporation Ltd.

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.
 

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:
""

JADE Java Persistence API
1.0

Copyright © 2007 Jade Software Corporation