Hi all,
Following the http://castor.exolab.org/tips-tricks.html#XML/JDO:-Create-method example, how can I make the com.u2d.MySingleton class extending another class ?
Next, you will find a really simple mapping file according to the castor example that I do not succeed in completing.
Thanks for your help,
Stephane.


<?xml version="1.0"?>
<mapping>
   <class name="com.u2d.ExtendedClass">
       <field name="AStringField" type="string">
           <bind-xml name="a-string-field" node="attribute" />
       </field>
   </class>

   <class name="com.u2d.MySingleton" extends="com.u2d.ExtendedClass">
   </class>

<class name="A">
<map-to xml="a"/>
<field name="mySingletonProperty" type="com.u2d.MySingleton" create-method="getSingletonProperty">
<bind-xml name="my-singleton-property" node="element" />
</field>
</class>
</mapping>


----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev




Reply via email to