In My Project Database We are creating the CompositeID as
This is my hbm.xml File:
<hibernate-mapping>
<class name="com.myComy.test.TbAddress" table="tb_address">
<composite-id name="id"class="com.myComy.test.TbAddressId">
<key-property name="addId" type="java.lang.Integer">
<column name="addID" />
</key-property>
<key-property name="address" type="java.lang.String">
<column name="Address" />
</key-property>
<key-property name="addressIndex" type="java.lang.Integer">
<column name="address_index" />
</key-property>
<key-property name="userId" type="java.lang.Integer">
<column name="userId" />
</key-property>
</composite-id>
</class>
</hibernate-mapping>
Actually i am new in Hibernate ......
How we can perform CRUD(Insert,Delete,update,select) Opeartion in Composite-id ?
Can you pls give me the Sample code for the Same.
Thnaks,
Ashish
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:
Problems with Session and transaction handling?
Read this:
http://hibernate.org/42.html