Yes, but why define Base class in mapping.xml? Just write Base class and extends mapped classes Alexey Efimov - Software Engineer Sputnik Labs 1st Kolobovsky per., 6/3 Moscow, 103051, Russia Phone: +7 (095) 725 5444 Direct: +7 (501) 401 3217 Fax: +7 (095) 725 5443 E-Mail: mailto:[EMAIL PROTECTED] http://www.spklabs.com
-----Original Message----- From: Alex Grivnin [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 06, 2002 5:14 PM To: [EMAIL PROTECTED] Subject: [castor-dev] Transient base class Hi, Is it possible to define a class which <map-to> element has no table="" , while the derived class will have one? Something like this: <class name="Base"> <map-to /> <field name="id" required="false" type="integer"> <sql name="id" type="integer"/> </field> </class> and the derived class: <class name="Derived" identity="id" extends="Base" key-generator="MAX"> <map-to table="test" xml="Test"/> <field name="name" required="false" type="string"> <sql name="name" type="string"/> </field> </class> The test table includes the 'id' and the 'name' columns in it. Thanks, Alex ----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev ----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev
