You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Boni Gopalan (JIRA)" <ji...@apache.org> on 2008/09/24 10:13:44 UTC

[jira] Created: (JCR-1761) OCM:Add the ability to specify name of a Collection Element through XML Mapping files.

OCM:Add the ability to specify name of a Collection Element through XML Mapping files.
--------------------------------------------------------------------------------------

                 Key: JCR-1761
                 URL: https://issues.apache.org/jira/browse/JCR-1761
             Project: Jackrabbit
          Issue Type: New Feature
          Components: jackrabbit-ocm
    Affects Versions: 1.5
         Environment: JAVA
            Reporter: Boni Gopalan
             Fix For: 1.4.1


Collection elements get mapped to a node "collection-element" when the mappings are specified through XML config files.  We need the ability to control this name through configuration.  Without that feature querying object structures is painful.  For example I have structure as below :

class Foo{
String id;
 List<Foo> children
 List<Foo> friends
}

And I have a need to query a Foo with id : 100 .  If I am interested only in child nodes with id = 110 , I could specify through the Filter that look at only node names , "childFoo" ; If I have the flexibility of adding a child node name.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (JCR-1761) OCM:Add the ability to specify name of a Collection Element through XML Mapping files.

Posted by "Christophe Lombart (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JCR-1761?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12634068#action_12634068 ] 

Christophe Lombart commented on JCR-1761:
-----------------------------------------

See discussion : 

http://jackrabbit.markmail.org/search/?q=OCM%3ACollection%20Element%20Node%20Names#query:OCM%3ACollection%20Element%20Node%20Names+page:1+mid:imvvgzwpfgx6kj2q+state:results

> OCM:Add the ability to specify name of a Collection Element through XML Mapping files.
> --------------------------------------------------------------------------------------
>
>                 Key: JCR-1761
>                 URL: https://issues.apache.org/jira/browse/JCR-1761
>             Project: Jackrabbit
>          Issue Type: New Feature
>          Components: jackrabbit-ocm
>    Affects Versions: 1.5
>         Environment: JAVA
>            Reporter: Boni Gopalan
>             Fix For: 1.4.1
>
>
> Collection elements get mapped to a node "collection-element" when the mappings are specified through XML config files.  We need the ability to control this name through configuration.  Without that feature querying object structures is painful.  For example I have structure as below :
> class Foo{
> String id;
>  List<Foo> children
>  List<Foo> friends
> }
> And I have a need to query a Foo with id : 100 .  If I am interested only in child nodes with id = 110 , I could specify through the Filter that look at only node names , "childFoo" ; If I have the flexibility of adding a child node name.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (JCR-1761) OCM:Add the ability to specify name of a Collection Element through XML Mapping files.

Posted by "Boni Gopalan (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JCR-1761?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Boni Gopalan closed JCR-1761.
-----------------------------

       Resolution: Fixed
    Fix Version/s:     (was: 1.4.1)
                   1.5

Issue resolved with the availability of 1.5-OCM-DTD.  Will provide a testcase.

> OCM:Add the ability to specify name of a Collection Element through XML Mapping files.
> --------------------------------------------------------------------------------------
>
>                 Key: JCR-1761
>                 URL: https://issues.apache.org/jira/browse/JCR-1761
>             Project: Jackrabbit
>          Issue Type: New Feature
>          Components: jackrabbit-ocm
>    Affects Versions: 1.5
>         Environment: JAVA
>            Reporter: Boni Gopalan
>             Fix For: 1.5
>
>
> Collection elements get mapped to a node "collection-element" when the mappings are specified through XML config files.  We need the ability to control this name through configuration.  Without that feature querying object structures is painful.  For example I have structure as below :
> class Foo{
> String id;
>  List<Foo> children
>  List<Foo> friends
> }
> And I have a need to query a Foo with id : 100 .  If I am interested only in child nodes with id = 110 , I could specify through the Filter that look at only node names , "childFoo" ; If I have the flexibility of adding a child node name.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.