Mention the key components of hibernate?



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

Post New Answer

More Hibernate Interview Questions

How many layers are there in hibernate architecture?

1 Answers  


What are the states in hibernate?

1 Answers  


What is mappedby?

1 Answers  


Which is better nhibernate or entity framework?

1 Answers  


What do you write in annotations?

1 Answers  


How do you map java objects with database tables?

1 Answers  


Hibernate Session is thread safe?

1 Answers  


Can we use hibernate without jpa?

1 Answers  


Why do we use cascade in hibernate?

1 Answers  


What is spring and hibernate framework?

1 Answers  


What is hibernate in pc?

1 Answers  


Which are the elements of hibernate architecture?

1 Answers  


Categories