org.salespointframework.core.data.database
Annotation Type PersistenceProperty


@Retention(value=RUNTIME)
@Target(value=FIELD)
public @interface PersistenceProperty

A PersistenceProperty defines field options for persistence process follow() : set to false if you don't wish to persist this field isUnique() : set to true, if this field should be the unique key autoAssign() : set to true, if generated key should be set on this field after persistence process isLongString() : set to true, for String contents greater than 500 characters : This annotation is only valid for fields of type java.lang.Class. This class will be saved and passed to the constructor at recovery time, according to the defined, zero-based index

Since:
4.0
Author:
Thomas Kissinger

Optional Element Summary
 boolean autoAssign
           
 boolean follow
           
 boolean isLongString
           
 boolean isUnique
           
 

follow

public abstract boolean follow
Returns:
See Also:
PersistenceProperty
Default:
true

isUnique

public abstract boolean isUnique
Returns:
See Also:
PersistenceProperty
Default:
false

autoAssign

public abstract boolean autoAssign
Returns:
See Also:
PersistenceProperty
Default:
false

isLongString

public abstract boolean isLongString
Returns:
See Also:
PersistenceProperty
Default:
false