Hi i an using Hibernate tool with eclipse ganymede 3.4.1 . Now when i create the .hbm.xml file using the code generation of Hibernate tool,it is automatically creating a composite key. I am adding the code over here :
but i need a mapping something like
<id name="id" type="java.lang.Integer">
<column name="id" />
</id>
<key-property name="name" type="string">
<column name="name" length="30" />
</key-property>
</class>
. can someone tell me how to do it.
Thanks in advance, Rima