10:52 am - Tuesday January 22, 2019

Tag Archives: Hibernate Interview Question

Hibernate Interview Questions and Answers part 12

1. What are the different levels of ORM quality? There are four levels defined for ORM quality. Pure relational Light object mapping Medium object mapping Full object mapping 2. What is Hibernate? Hibernate is a powerful, high performance...

Hibernate Interview Question11

1. What are Extension interfaces? When the built-in functionalities provided by hibernate is not sufficient enough, it provides a way so that user can include other interfaces and implement those interfaces for user desire functionality. These...

Hibernate Interview Question and Answers Part 10

1. What is HQL? HQL stands for Hibernate Query Language. Hibernate allows the user to express queries in its own portable SQL extension and this is called as HQL. It also allows the user to express in native SQL. 2. What is object/relational...

Hibernate Interview Questions and Answers – Part 8

1. Types of locks Read lock Write lock Execute lock Fetch lock Save lock 2. What is 2-phase lock? Read only transaction Update transaction 3. What are the design patterns used in hibernate? Composite design DAO Design Pattern Abstract...

Hibernate Interview Questions and Answers- Part 7

1. What is the purpose of dialect? There are two concepts here a Dialect and a Driver, Driver is like English. Dialect is the different pronunciations of English. We all know there are different versions of Oracle… Oracle 9i, Oracle8. The...

Hibernate Interview Question and Answers Part 9

1. What is caching? Anything you can do to minimize traffic between a database and an application server is probably a good thing. In theory, an application ought to be able to maintain a cache containing data already loaded from the database,...

Hibernate Interview Questions and Answers – Part 1

Hibernate Interview Questions Hibernate is one of the ORM tool developed for Java applications. for providing database oriented services hibernate was mostly used in enterprise related applications. Having knowledge in Hibernate will add advantage for...

Hibernate Interview Questions and Answers – Part 3

1. How can Hibernate be configured to access instance variable directly and not through a setter method? By mapping the property with access=” field” in Hibernate metadata. These forces hibernate to bypass the setter method and access...

Hibernate Interview Questions and Answers – Part 2

1. Define HibernateTemplate? org.springframework.orm.hibernate.HibernateTemplate is a helper class which provides different methods for querying/retrieving data from the database. It also converts checked HibernateExceptions into unchecked DataAccessExceptions. 2....

Hibernate Interview Question and Answers- Part 6

1. Explain about version field? Application level data integrity constants are important if you are making changes to offline information which is again backed by the database. Higher level locking or versioning protocol is required to support...

Hibernate Interview Question and Answers

1. What is ORM? ORM stands for object/relational mapping. ORM is the automated persistence of objects in a Java application to the tables in a relational database 2. What does ORM consist of? An ORM solution consists of the following four pieces: API...

Hibernate Interview Questions and Answers Part 5

1. What is a Session Factory? Is it a thread-safe object? SessionFactory is Hibernates concept of a single data store and is threadsafe so that many threads can access it concurrently and request for sessions and the immutable cache of compiled...