Are there any tag in XML mapping which functionality is similar to a 
"save-automatic" ??

For example:
I Have an object which has an attribute from class X and many attributes 
from class Y, then I would like to do:

<class name="MyClassOne" identity="id" key-generator="HIGH/LOW">
     <map-to table="class_one" xml="parent" />
     <field name="id" type="integer">
       <sql name="class_one_id" type="integer"/>
       <xml node="attribute"/>
     </field>
     <!--  one-to-one relationship  -->
     <field name="x" type="MyClassX" 
required="true"  save-automatic="true">   < -----------  This funcionality !
       <sql name="x_id"/>
       <xml node="element"/>
     </field>
     <!--   many-many relationship -->
     <field name="myYs" type="MyClassY" required="true"
            collection="collection" 
save-automatic="true">          <  -------- Look it here again!   :-)
       <sql name="y_id"
            many-table="one_y" many-key="class_one_id" />
       <xml name="myYs" node="element" />
     </field>
   </class>

Is it possible to do something like this with castor ??



Rodrigo Paes
Ci�ncia da Computa��o - UFAL
Messenger - [EMAIL PROTECTED]
ICQ - 85921785


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

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

Reply via email to