Does hibernate work without primary key?



Does hibernate work without primary key?..

Answer / Asghar Ali Khan

No, Hibernate requires a primary key column in your database table. The primary key is essential for identifying each row uniquely and mapping it to an entity.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Hibernate Interview Questions

Why hibernate?

1 Answers  


Is a mapping in hibernate?

1 Answers  


What is hibernate in java?

1 Answers  


What is difference between first level cache and second level cache?

1 Answers  


Can we update primary key in hibernate?

1 Answers  


What are pojos and what’s their significance?

1 Answers  


What is the difference between jpa and hibernate?

1 Answers  


What is association mapping in hibernate?

1 Answers  


How to integrate hibernate and spring?

1 Answers  


Can we use hibernate without jpa?

1 Answers  


How many types of query are there in hibernate?

1 Answers  


What is cascade in hibernate in which scenario we use it?

1 Answers  


Categories