Why we are using jpa annotation instead of hibernate?
Answer / Surendra Kumar Patel
JPA Annotations are used instead of Hibernate because JPA provides a standard API for persistence in Java EE applications, and it can be implemented by various providers like Hibernate. This makes the application more portable across different databases.
| Is This Answer Correct ? | 0 Yes | 0 No |
Is hibernate lazy load by default?
What will happen if we don’t have no-args constructor in entity bean?
What is cascade persist?
What is cascading and what are different types of cascading?
What is named native query in hibernate?
How many layers are there in hibernate architecture?
What are fetch types in hibernate?
What is 2nd level cache?
Different types of hibernate instance states?
What is session in hibernate?
Is hibernate framework good?
What is the role played by session interface in hibernate?