If I have the following mapping :

        <mapping>
            <class name="com.xyz.MyObject" identity="firstName lastName">
                <field name="firstName" type="string">
             <sql name="fname"/>
                </field>
          <field name="lastName" type="string">
                   <sql name="lname"/>
          </field>
                <field  ... />
                ...
            </class>
        </mapping>



what is the java code to load such an object ?
I want to say a java code like this :

        Database db;
        ...
        com.xyz.MyObject myObject = db.load (com.xyz.MyObject.class,
specialObjectContainingThe2Keys);

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

Reply via email to