org.simpleds.annotations
Annotation Type Property


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

Specify how a property should get mapped to the Datastore. All properties are mapped by default unless annotated with Transient.


Optional Element Summary
 java.lang.Class<?> converter
          The Converter class to use with this attribute.
 boolean required
          Marks this attribute as required.
 boolean unindexed
          Marks this attribute as unindexed.
 java.lang.String value
          The name of the datastore property.
 

value

public abstract java.lang.String value
The name of the datastore property. If unspecified the java attribute name will be used.

Default:
""

required

public abstract boolean required
Marks this attribute as required. Default is false.

Default:
false

unindexed

public abstract boolean unindexed
Marks this attribute as unindexed. Unindexed attributes do not create an automatic index.

All attributes are indexed by default except Text and Blob data types.

Default:
false

converter

public abstract java.lang.Class<?> converter
The Converter class to use with this attribute. If not specified, the default converter for this attribute type will be used

Default:
org.simpleds.converter.NullConverter.class