What are the contents of hibernate configuration file ( hibernate.cfg.xml )?
Answer / Vinit Kumar Pandey
The Hibernate configuration file (hibernate.cfg.xml) contains various settings required to configure the Hibernate framework, such as:
1. Database connection properties - JDBC driver class, URL, username, and password.
2. Dialect - The dialect specifies the database-specific syntax that Hibernate should use when generating SQL statements.
3. Mappings - This section defines the mapping between Java classes and their corresponding database tables using XML mappings or annotations.
4. Caching - Configuration options for enabling and configuring first level cache (session cache) and second level cache.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is the purpose of mapping?
What hibernate save returns?
What we can not do in jdbc but can do hibernate?
How to integrate Hibernate and Spring frameworks?
How mapping of java objects is done with database tables?
What is concurrency strategies in hibernate?
What is a persistence context?
What is the difference between hibernate session get() and load() method?
What is the use of sessionfactory?
What is hibernate bag collection?
Why do we use criteria in hibernate?
What is the difference between one to one and one to many relationship?