Why we are using jpa annotation instead of hibernate?



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

Post New Answer

More Hibernate Interview Questions

Is hibernate lazy load by default?

1 Answers  


What will happen if we don’t have no-args constructor in entity bean?

1 Answers  


What is cascade persist?

1 Answers  


What is cascading and what are different types of cascading?

1 Answers  


What is named native query in hibernate?

1 Answers  


How many layers are there in hibernate architecture?

1 Answers  


What are fetch types in hibernate?

1 Answers  


What is 2nd level cache?

1 Answers  


Different types of hibernate instance states?

1 Answers  


What is session in hibernate?

1 Answers  


Is hibernate framework good?

1 Answers  


What is the role played by session interface in hibernate?

1 Answers  


Categories