2005/8/28, Sandro Böhme <[EMAIL PROTECTED]>:
> 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" />
</class-descriptor>
<class-descriptor
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" />
</class-descriptor>