When you load mappin.xml and get object Mapping.
Then:
MappingRoot mappingRoot = mapping.getRoot();
Enumeration e = mappingRoot.enumerateClassMapping();
while (e.hasMoreElements()) {
ClassMapping classMapping = (ClassMapping)e.nextElement();
// Here using ClassMapping you can retrive all info from mapping.xml
for each class
// See Full JavaDocs API
}
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: Radu TRIMBITAS [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 10, 2002 1:53 PM
To: [EMAIL PROTECTED]
Subject: [castor-dev] How to find out the table of a mapped field?
Hello!
How can I know at runtime to which table/column name is mapped an
attribute of a class? (looking for other solutions than parsing the
mapping description XML file).
Thank You!
Radu TRIMBITAS
-----------------------------------------------------------
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