org.apache.jackrabbit.ocm.mapper.impl.annotation
Annotation Type Collection


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

Allows the annotation of getting methods to show that they reflect a child node in JCR

Author:
Philip Dodds

Optional Element Summary
 boolean autoInsert
           
 boolean autoRetrieve
           
 boolean autoUpdate
           
 java.lang.Class collectionClassName
           
 java.lang.Class collectionConverter
           
 java.lang.Class elementClassName
           
 boolean jcrAutoCreated
           
 java.lang.String jcrElementName
           
 boolean jcrMandatory
           
 java.lang.String jcrName
           
 java.lang.String jcrOnParentVersion
           
 boolean jcrProtected
           
 boolean jcrSameNameSiblings
           
 java.lang.String jcrType
           
 boolean proxy
           
 

jcrName

public abstract java.lang.String jcrName
Default:
""

proxy

public abstract boolean proxy
Default:
false

autoRetrieve

public abstract boolean autoRetrieve
Default:
true

autoUpdate

public abstract boolean autoUpdate
Default:
true

autoInsert

public abstract boolean autoInsert
Default:
true

elementClassName

public abstract java.lang.Class elementClassName
Default:
java.lang.Object.class

jcrElementName

public abstract java.lang.String jcrElementName
Default:
"collection-element"

collectionConverter

public abstract java.lang.Class collectionConverter
Default:
org.apache.jackrabbit.ocm.manager.collectionconverter.impl.DefaultCollectionConverterImpl.class

collectionClassName

public abstract java.lang.Class collectionClassName
Default:
java.lang.Object.class

jcrType

public abstract java.lang.String jcrType
Default:
""

jcrAutoCreated

public abstract boolean jcrAutoCreated
Default:
false

jcrMandatory

public abstract boolean jcrMandatory
Default:
false

jcrOnParentVersion

public abstract java.lang.String jcrOnParentVersion
Default:
"COPY"

jcrProtected

public abstract boolean jcrProtected
Default:
false

jcrSameNameSiblings

public abstract boolean jcrSameNameSiblings
Default:
false


Copyright © 2004-2010 Apache Software Foundation. All Rights Reserved.