org.chromattic.api.annotations
Annotation Type Property


@Retention(value=RUNTIME)
@Target(value=METHOD)
public @interface Property

Defines the mapping between the property of a node type and a java bean property of the annotated class.

Version:
$Revision$
Author:
Julien Viet

Required Element Summary
 java.lang.String name
          The jcr property namen either qualified or unqualified.
 
Optional Element Summary
 int type
          Specify the property type of the mapped property, the value must be a legal value referenced by javax.jcr.PropertyType.
 

Element Detail

name

public abstract java.lang.String name
The jcr property namen either qualified or unqualified.

Returns:
the jcr property name

type

public abstract int type
Specify the property type of the mapped property, the value must be a legal value referenced by javax.jcr.PropertyType. The default value returned is -1 which means that the value is determined by Chromattic according to the type of the annotated property.

Returns:
the property type value.
Since:
1.1
Default:
-1


Copyright © 2011 eXo Platform SAS. All Rights Reserved.