Please send your Questions & Answers or Feedback to ""

How primary key is created by using hibernate?

Database primary key is specified in the configuration file hbm.xml. Generator can also be used to specify how primary key is being created in the database.

In the below example, deptId acts as primary key:

<id name="deptId" type="string" >

<column name="columnId" length="30"/>



Related Posts Plugin for WordPress, Blogger...
Flag Counter