This is a list of basic questions from Hibernate which you can use to check your understanding or even prepare for interviews. You may use the parent chapter, other chapters or hibernate or the forum to discuss more on these questions.
What is a framework?
What do you mean by CRUD?
What is Hibernate? What are the advantages of using Hibernate?
What is Java Persistence API (JPA)?
What is an ORM? What are the advantages of ORM over JDBC?
Briefly explain Hibernate architecture?
What is a configuration object in hibernate?
List some of the most common methods of Hibernate configuration?
What are the different ways in which you can configure a hibernate application?
What do you mean by a transaction in hibernate?
What is a SessionFactory in hibernate?
Is Hibernate SessionFactory a thread-safe object?
What is a Session in hibernate?
Is Session in Hibernate a thread-safe object?
What are the states of an object in hibernate?
What are the inheritance mapping strategies available in Hibernate?
How many types of association mapping are possible in hibernate?
What is lazy loading in hibernate? What is the opposite of it?
What is HQL (Hibernate Query Language)?
What is the purpose of Session.beginTransaction() method? How do you end it?
Where are Object/relational mappings are defined in hibernate?
What is root node of hbm.xml?
Which element of hbm.xml defines a specific mappings from a Java classes to the database tables?
Which element of hbm.xml defines maps the unique ID attribute in class to the primary key of the database table?
Which element of hbm.xml is used to automatically generate the primary key values?
Which element of hbm.xml is used to map a Java class property to a column in the database table?
Which element of hbm.xml is used to map a java.util.Set property in hibernate?
Which element of hbm.xml is used to map a java.util.SortedSet property in hibernate?
Which element of hbm.xml is used to map a java.util.List property in hibernate?
Which element of hbm.xml is used to map a java.util.Map property in hibernate?
Which element of hbm.xml is used to map a java.util.SortedMap property in hibernate?
What is many-to-one association?
What is one-to-one association?
What is one-to-many association?
What is many-to-many association?
What will happen if we don’t have no-args constructor in Entity bean?
How to implement Joins in Hibernate?
Can we execute native sql query in hibernate?
Give any benefits of native sql query support in hibernate?
What are the benefits of Named SQL Query?
How to log hibernate generated sql queries in log files?
How can we implement relationships in Hibernate?
What is cascading and what are different types of cascading?
How can we integrate log4j logging in hibernate application?
How can integrate Hibernate and Spring frameworks? Give all ways.
How can we create primary key by using hibernate?
How can we reattach any detached objects in Hibernate?
What are fetching strategies? What are the different fetching strategies are of hibernate?
How to store an image using hibernate
How do you define sequence generated primary key in hibernate?
Define cascade and inverse option in one-to-many mapping?
What is a Criteria API?
Searches whole web. Use the search in the right sidebar to search only within javajee.com!!!