Questions of Test: Hibernate Interview Questions - I

More >>

1

A simple java application uses Hibernate core to access db. Which of the following statements are true?

2

What do you mean by CRUD operation?

3

An Hibernate core application has following files in the classptah directory with following entries:

In hibernate.properties:
 hibernate.connection.url = jdbc:mysql://localhost/myAppDB1

and in hibernate.cfg.xml file we have:
   <property name="hibernate.connection.url">
  jdbc:mysql://localhost/myAppDB2
   </property>

Given the files have the above statements in correct places in the file,
when hibernate gets initialized, to which db the Hibernate will be connected?

4

Which of the following statements are true ?

5

What is dirty checking? When will this happen?

6

What are Transient objects in Hibernate?

7

I am using JPA implementation of Hibernate, with JPA XML descriptors for my persistent objects. Now  can we use Hibernate tags inside JPA xml descriptors for special behaviours only supported by Hibernate?

8

What is the use of adopting Hibernate's JPA implementation with JPA based XML descriptors and Entity managers in my project?

9

How can one consider that the persistent objects representing rows of a table are identical?

10

Which of the following identifier - generator modules are defined in Hibernate core?

More >>