|
Answer» Following are the key components/objects of Hibernate − Configuration − Represents a configuration or properties file required by the Hibernate. SessionFactory − Configures Hibernate for the application using the supplied configuration file and allows for a Session object to be instantiated. Session − Used to get a physical connection with a database. Transaction − Represents a unit of work with the database and most of the RDBMS supports transaction functionality. Query − Uses SQL or Hibernate Query Language (HQL) string to retrieve data from the database and create objects. Criteria − Used to create and execute object oriented criteria queries to retrieve objects.
|