You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Ard Schrijvers (JIRA)" <ji...@apache.org> on 2012/05/25 17:39:23 UTC

[jira] [Resolved] (OCM-50) AnnotationDescriptorReader in case of a @Collection annotation incorrectly assumes the nodetype of the collection *elements* should be used for the collection node itself

     [ https://issues.apache.org/jira/browse/OCM-50?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ard Schrijvers resolved OCM-50.
-------------------------------

    Resolution: Fixed
    
> AnnotationDescriptorReader in case of a @Collection annotation incorrectly assumes the nodetype of the collection *elements* should be used for the collection node itself
> --------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: OCM-50
>                 URL: https://issues.apache.org/jira/browse/OCM-50
>             Project: Jackrabbit OCM
>          Issue Type: Bug
>            Reporter: Ard Schrijvers
>            Assignee: Ard Schrijvers
>             Fix For: 2.0.0
>
>
> Note that the digester version does correctly use the configured type: Thus for example:
> <collection-descriptor fieldName="collection" jcrName="collection" proxy="false"
>         elementClassName="org.apache.jackrabbit.ocm.testmodel.C" jcrType="nt:unstructured"
>         jcrAutoCreated="false" jcrMandatory="false" jcrOnParentVersion="IGNORE"
>         jcrProtected="false" jcrSameNameSiblings="false"/>
> correctly uses nt:unstructured for the collection when created, however, 
> @Collection(elementClassName=C.class, jcrType="nt:unstructured", jcrOnParentVersion="IGNORE") private java.util.Collection collection;
> does use the nodetype of C.class as the type for the collection to create

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira