How to create composite key in hibernate using annotations?
Answer / Ajay Chauhan
In Hibernate, you can define a composite primary key using the @IdClass annotation on the entity class and @Id annotations on the fields that make up the composite key.
| Is This Answer Correct ? | 0 Yes | 0 No |
Explain about hibernate proxy and how it helps in lazy loading?
What is the difference between lazy and eager loading in hibernate?
What is getcurrentsession in hibernate?
What is unidirectional and bidirectional in hibernate?
How many attributes are there in column annotation?
What is difference between first level cache and second level cache?
What is the difference between an orm and an odm?
What are the advantages of using hibernate over jdbc?
What happens if hibernate session is not closed?
What is automatic dirty checking in hibernate?
What is purpose of hibernate?
What is the hibernate life cycle of an entity?