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:17:23 UTC
[jira] [Created] (OCM-50) AnnotationDescriptorReader in case of a
@Collection annotation incorrectly assumes the nodetype of the collection
*elements* should be used for the collection nodes itself
Ard Schrijvers created OCM-50:
---------------------------------
Summary: AnnotationDescriptorReader in case of a @Collection annotation incorrectly assumes the nodetype of the collection *elements* should be used for the collection nodes itself
Key: OCM-50
URL: https://issues.apache.org/jira/browse/OCM-50
Project: Jackrabbit OCM
Issue Type: Improvement
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
[jira] [Updated] (OCM-50) AnnotationDescriptorReader in case of a
@Collection annotation incorrectly assumes the nodetype of the collection
*elements* should be used for the collection nodes itself
Posted by "Ard Schrijvers (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OCM-50?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ard Schrijvers updated OCM-50:
------------------------------
Issue Type: Bug (was: Improvement)
> AnnotationDescriptorReader in case of a @Collection annotation incorrectly assumes the nodetype of the collection *elements* should be used for the collection nodes 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
[jira] [Commented] (OCM-50) AnnotationDescriptorReader in case of a
@Collection annotation incorrectly assumes the nodetype of the collection
*elements* should be used for the collection nodes itself
Posted by "Ard Schrijvers (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OCM-50?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13283537#comment-13283537 ]
Ard Schrijvers commented on OCM-50:
-----------------------------------
The collectionDescriptor should not get the jcrType from its annotated elements, but just from its own annotation.
collectionDescriptor.setJcrType(collectionAnnotation.jcrType());
> AnnotationDescriptorReader in case of a @Collection annotation incorrectly assumes the nodetype of the collection *elements* should be used for the collection nodes 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
[jira] [Updated] (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
Posted by "Ard Schrijvers (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OCM-50?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ard Schrijvers updated OCM-50:
------------------------------
Summary: AnnotationDescriptorReader in case of a @Collection annotation incorrectly assumes the nodetype of the collection *elements* should be used for the collection node itself (was: AnnotationDescriptorReader in case of a @Collection annotation incorrectly assumes the nodetype of the collection *elements* should be used for the collection nodes itself)
> 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
[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
Posted by "Ard Schrijvers (JIRA)" <ji...@apache.org>.
[ 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