incubator-graffito-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christophe Lombart <>
Subject Re: [jira] Created: (GRFT-37) Final JCR Mapping Document PROPOSAL // mapping structure
Date Sun, 28 Aug 2005 22:03:27 GMT
2005/8/28, Sandro Böhme <>:

> Where do you see the difference between field and a bean-field?
See the GenericConverter class (eg. The insert method)

> We could add a "type" attribute to the field-descriptor or the sub-tag
> (<java-method/>) of it. It can contain not
> only primitive types but also custom java classes that have a mapping
> defined in the mapping file. This already
> works in my prototype  (The "Folder" has a "Document").

I'm not sure this kind of attribute is necessary. See the following example : 

<class-descriptor className="org.apache.portals.graffito.jcr.testmodel.A" 
jcrNodeType="nt:unstructured" >
            <!-- add here field descriptor -->
            <bean-descriptor fieldName="b" jcrName="b" proxy="false"  />
className="org.apache.portals.graffito.jcr.testmodel.B"  jcrNodeType=
"nt:unstructured" >
		    <!-- Field-descriptor is used to map simple attributes to jcr property -->
			<field-descriptor fieldName="b1" jcrName="b1" />   
			<field-descriptor fieldName="b2" jcrName="b2" />

View raw message