Hibernate Interview Questions
By AmarSivas | | Updated : 2020-01-11 | Viewed : 201 times
1. What is the Java Persistence API ?
Java Persistence API
2. What is Hibernate Framework?
It is an
3. What are the advantages/ benefits of Hibernate over JDBC?
|Queries are data base dependent||HQL queries are database independent.|
|JDBC does not support for Lazy Loading||Hibernate supports Lazy Loading|
|Developer need to write queries for Curd operations.||Here we can use for Hibernate methods for CURD operations.|
|No support for Caching mechanism||Supports Caching mechanism.|
|JDBC does not provide support for connection pool||Hibernate provides support for connection pool|
|It will not support Identifier generation for primary key to insert the record||It will support Identifier generation for primary key to insert the record|
|Caching mechanism cannot be used here.||Caching mechanism can be used here|