Mention the key components of hibernate?
Answer / Rakesh Kumar Lohani
"The key components of Hibernate are: 1) Session: The primary interface for interacting with the database. It represents a single unit of work and manages caches, transactions, and database connections. 2) Transaction: A set of operations that are executed atomically, ensuring data integrity. 3) Connection Pool: A collection of database connections that can be reused to improve performance. 4) Query: A way to retrieve or manipulate data from the database. Hibernate supports both SQL and Criteria API for querying. 5) Configuration: The configuration file (hibernate.cfg.xml or hbm.xml) that contains settings for connecting to the database, mapping classes to tables, and other configurations.
| Is This Answer Correct ? | 0 Yes | 0 No |
How many layers are there in hibernate architecture?
What are the states in hibernate?
What is mappedby?
Which is better nhibernate or entity framework?
What do you write in annotations?
How do you map java objects with database tables?
Hibernate Session is thread safe?
Can we use hibernate without jpa?
Why do we use cascade in hibernate?
What is spring and hibernate framework?
What is hibernate in pc?
Which are the elements of hibernate architecture?