Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version:
Mapping documents:
Code between sessionFactory.openSession() and session.close():
Full stack trace of any exception that occurs:
Name and version of the database you are using:
The generated SQL (show_sql=true):
Debug level Hibernate log excerpt:
Can any body tell me how to get the properties of the composite id from the Configuration instance?
<class
name="vpo.Tcustcontactorrela"
table="TCUSTCONTACTORRELA"
>
<composite-id name="id" class="vpo.TcustomercontactorPK">
<key-property name="
ccustno" column="C_CUSTNO"></key-property>
<key-property name="
lcontactorid" column="L_CONTACTORID"></key-property>
<key-property name="
ccontactortypecode" column="C_CONTACTORTYPECODE"></key-property>
</composite-id>
</class>
I know how to get the identifier: cfg.getClassMapping(entity.getClass()).getIdentifier(); But what about the composite id?
Thank you advance!