org.tynamo.descriptor.annotation
Annotation Type InitialValue


@Retention(value=RUNTIME)
@Target(value={FIELD,METHOD})
public @interface InitialValue

Annotation used to initialize a field based on an OGNL expression, usually another field.

For example, assume you have a car of certain model made by certain make. The car has a relation to the model, but not the make. So you create a transient property make initialized by model.make.

Author:
pruggia

Required Element Summary
 String value
          The expression that when executed provides the initial value for the property.
 

Element Detail

value

public abstract String value
The expression that when executed provides the initial value for the property.



Copyright © 2004-2009. All Rights Reserved.