Search Interview Questions | ![]() ![]() Click here and help us by providing the answer. ![]() Click Correct / Improve and please let us know. |
|
| |||||||||||||||||||||||||||
Hibernate - Interview Questions and Answers for 'Accenture' - 5 question(s) found - Order By Newest | |||||||||||||||||||||||||||
![]() | |||||||||||||||||||||||||||
| |||||||||||||||||||||||||||
Ans. It's a feature to lazily initialize dependencies , relationship and associations from the Database. Any related references marked as @OneToMany or @ManyToMany are loaded lazily i.e when they are accessed and not when the parent is loaded. | |||||||||||||||||||||||||||
![]() | |||||||||||||||||||||||||||
![]() | |||||||||||||||||||||||||||
![]() ![]() ![]() ![]() ![]() ![]() | |||||||||||||||||||||||||||
![]() | |||||||||||||||||||||||||||
| |||||||||||||||||||||||||||
Ans. 1. EHCache ( Easy Hibernate ) 2. OSCache ( Open Symphony ) 3. Swarm Cache ( JBoss ) 4. Tree Cache ( JBoss ) | |||||||||||||||||||||||||||
![]() | |||||||||||||||||||||||||||
![]() ![]() ![]() ![]() | |||||||||||||||||||||||||||
| |||||||||||||||||||||||||||
Ans. Criteria is a simplified API for retrieving entities by composing Criterion objects. For example - session.createCriteria(Employee.class).add( Restrictions.like("name", "A%") ).list(); will return all employee objects having name starting with A. | |||||||||||||||||||||||||||
![]() | |||||||||||||||||||||||||||
![]() ![]() ![]() ![]() ![]() ![]() | |||||||||||||||||||||||||||
![]() | |||||||||||||||||||||||||||
| |||||||||||||||||||||||||||
Ans. JDBC is a standard Java Api for Database communication whereas Hibernate is an ORM framework that uses JDBC to connect with Database. Hibernate is another layer of object table mapping over JDBC that provide a database independent, object oriented and an efficient way of database communication. | |||||||||||||||||||||||||||
![]() | |||||||||||||||||||||||||||
![]() ![]() ![]() ![]() | |||||||||||||||||||||||||||
| |||||||||||||||||||||||||||
Ans. table per hierarchy table per concrete class table per sub class | |||||||||||||||||||||||||||
![]() | |||||||||||||||||||||||||||
![]() ![]() ![]() ![]() | |||||||||||||||||||||||||||