Question 1
Which annotation is used in Hibernate to define a column name for the entity properties?
Question 2
What is Hibernate primarily used for?
Question 3
What annotation specifies that a class is an entity in Hibernate?
Question 4
Which Hibernate interface represents a single unit of work with the database?
Question 5
Which Java class needs to be created first when developing a Hibernate application?
Question 6
What is the difference between the 'getCurrentSession()' and 'openSession()' methods in Hibernate?
Question 7
In Hibernate, which method automatically manages database transactions?
Question 8
What feature of Hibernate helps in eliminating boilerplate code for database transactions?
Question 9
Which method of mapping does Hibernate provide apart from XML configurations?
Question 10
What is the primary purpose of the 'hibernate.cfg.xml' file in a Hibernate application?
Question 11
What language does Hibernate use to offer a more object-oriented way of querying databases?
Question 12
Which mapping type is used to associate a single instance of one entity with multiple instances of another in Hibernate?
Question 13
Which Hibernate cache level is automatically associated with the session object?
Question 14
How can you define the primary key generation strategy in a Hibernate entity?
Question 15
What is the behavior of the 'load()' method if the specified data does not exist?