org.jcrom.annotations
Annotation Type JcrNode


@Retention(value=RUNTIME)
@Target(value=TYPE)
public @interface JcrNode

This annotation is applied to types (classes or interfaces) that implement JcrEntity, and provides the ability to specify what JCR node type to use when creating a JCR node from the object being mapped, mixin types, and more.

Author:
Olafur Gauti Gudmundsson

Optional Element Summary
 java.lang.String classNameProperty
          Name of a JCR property to store the full name of the class being mapped.
 java.lang.String[] mixinTypes
          Mixin types to be added to all new nodes created from this class.
 java.lang.String nodeType
          The node type to be applied for this JCR object.
 

nodeType

public abstract java.lang.String nodeType
The node type to be applied for this JCR object. Defaults to "nt:unstructured".

Returns:
the node type to use when creating a JCR node for this object
Default:
"nt:unstructured"

mixinTypes

public abstract java.lang.String[] mixinTypes
Mixin types to be added to all new nodes created from this class.

Returns:
the mixin types for new nodes created from the class
Default:
{}

classNameProperty

public abstract java.lang.String classNameProperty
Name of a JCR property to store the full name of the class being mapped. Value of "none" will lead to the class name not being stored.

Returns:
name of a property to store the class name in
Default:
"none"


Copyright © 2009. All Rights Reserved.