Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Hibernate How to create primary key using hibernate?
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


Java Coder
How to create primary key using hibernate?
1 Answer(s)      a year and 8 months ago
Posted in : Hibernate


Hi,

How to create primary key using hibernate?

Thanks,


Advertisement
View Answers

May 2, 2013 at 12:03 PM


Hi,

Every relational table has a "natural" primary key. However, it may be unrecognized and undefined. To create primary key using hibernate we need to specify the key generation techniques in hibernate?s XML mapping file.

Here is syntax for Primary key in hibernate

For more visit this link : http://www.roseindia.net/hibernate/

Thanks,



Related Tutorials/Questions & Answers:
Advertisements
 

 

 

DMCA.com