Multiple choice technology programming languages

There are core interfaces are used in just about every Hibernate application. Using these interfaces, you can store and retrieve persistent objects and control transactions. Select all the interfaces that you see

  1. Configuration interface

  2. Session interface

  3. Query and Criteria interfaces

  4. User interface

Reveal answer Fill a bubble to check yourself
A,B,C Correct answer
Explanation

Configuration, Session, Query, and Criteria are core Hibernate interfaces used to establish settings, manage database connections, and run queries. The User interface is not part of Hibernate's core framework APIs.

AI explanation

To answer this question, you need to understand the core interfaces used in Hibernate applications. Let's go through each option to understand which interfaces are correct or incorrect:

Option A) Configuration interface - This option is correct. The Configuration interface is used to configure Hibernate and set up the mapping between Java classes and database tables.

Option B) Session interface - This option is correct. The Session interface is used to create, read, update, and delete persistent objects. It represents a single unit of work with the database.

Option C) Query and Criteria interfaces - This option is correct. The Query and Criteria interfaces are used to perform database queries and retrieve data from the database.

Option D) User interface - This option is incorrect. The User interface is not a core interface used in Hibernate applications.

The correct answer is A, B, C. These interfaces are commonly used in Hibernate applications for storing and retrieving persistent objects and controlling transactions.