getIdentifierProperty()

Chung, Gary wrote:

Hi,

I would like to get the O/R mappings for a class and was trying to do Configuration.getClassMappings() and then for each class I was trying to iterate the properties using RootClass.getPropertyIterator. However, the returned mappings don't include the key properties, it only includes properties other than the keys. Any way to get all mappings including the key properties?

e.g.
<class name="test.AumInvestmentvehicle" table="InvestmentVehicle">
<id column="InvestmentVehicleId" length="10" name="investmentvehicleid" type="string">
<generator class="assigned"/>
</id>
<property column="InvestmentVehicle" length="50" name="name" type="string"/>
</class>


it only returns the property of InvestmentVehicle but not the InvestmentVehicleId...

Thanks,

Gary





-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel

Reply via email to