How primary key is created by using hibernate?



How primary key is created by using hibernate?..

Answer / Rajdeep Singh

"By default, Hibernate generates primary keys as autoincrementing integers. However, it can also be configured to use other strategies such as identity columns, sequences, or UUIDs."

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Hibernate Interview Questions

Which hibernate object wraps the jdbc connection?

1 Answers  


What is difference between hibernate session get() and load() method?

1 Answers  


What are the hibernate properties?

1 Answers  


What does it mean to be inverse?

1 Answers  


Why sessionfactory is singleton in hibernate?

1 Answers  


How can we get hibernate statistics?

1 Answers  


What is the role of sessionfactory in hibernate?

1 Answers  


What are some advantages of lazy loading?

1 Answers  


What is the use of projection in hibernate?

1 Answers  


What is component mapping in hibernate?

1 Answers  


Can we declare entity class as final?

1 Answers  


How does hibernate distinguish between transient (i.e. Newly instantiated) and detached objects?

1 Answers  


Categories