Hi!

I would like to know the name of the column a java property is bound to.

For example, let's suppose I have the following mapping:
<mapping>
         <class name="Test" identity="ID">
                 <map-to table="test" />
                 <field name="ID" type="long">
                         <sql name="id" type="bigint" />
                 </field>
         </class>
</mapping>


Using the Mapping object, then the Resolver, and getting the ClassDescriptor (I 
know the name of the class -- in this case 'Test'), and all the 
FieldDescriptor's, is there any way to do so?


Simply said, I know the name of my class ('Test'), the mapping file used, and 
for each field of that class defined in the mapping, I want the name of the SQL 
column (so for 'ID' it would be 'id').

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

Reply via email to