incubator-graffito-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oliver Kiessler <>
Subject Re: [jira] Created: (GRFT-37) Final JCR Mapping Document PROPOSAL
Date Sat, 27 Aug 2005 16:09:46 GMT
>  >Here is a simplification of the Sandro proposal....
> I'm more for a mapping file similar to this:
>         <mapping>
>             <classAttributes
> packageName="org.apache.portals.graffito.jcr.testmodel"
> className="CmsObject"/>
>             <nodeTypeAttributes nodeTypeName="graffito:CmsObject">
>                 <supertype>nt:base</supertype>
>             </nodeTypeAttributes>
>             <subitemMapping propertyName="objectId" parameterType="long"
> jcrPropertyDefinition name="graffito:parentId" />
>        </mapping>

Just to clarify things: We have two types of mapping files, one for
the node type registration (bean to jcr custom node type mapping) and
one for the actual persistence mapping of beans to jcr nodes. correct?

Because I think Sandro is refering to the node type registration
mapping file and Christophe is refering to the beans to jcr nodes
mapping file.

One comment to the jcr-mapping proposal textfile:

2.2 The mapping file
I would like to suggest to make field descriptors simpler:

<field-descriptor fieldName="a1" jcrName="a1" />  
<field-descriptor fieldName="a1" />

If "jcrName" is not specified the same name as the "fieldName" is
used. I would suggest to make "jcrName" optional.

@Christophe: Please let me know where I can join in and help coding.


View raw message