Explain Hibernate configuration file and Hibernate mapping file?

devquora
devquora

Posted On: Feb 22, 2018

 

Hibernate configuration file:
It contains database specific configurations and is used to initialize SessionFactory.
It provides database credentials or JNDI resource information in the hibernate configuration XML file.
Dialect information is another important part of the hibernate configuration file.
Hibernate Mapping file:
It is used to define the database table column mappings and entity bean fields.
We use JPA annotations for mappings, but when we are using the third party classes sometimes XML mapping files becomes handy and we cannot use annotations.

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    Hibernate Interview Questions

    What is Hibernate ?

    Hibernate is a free software, which is distributed under GNU Lesser General public license 2.1. It is categorized under the Object Relational Mapping (ORM)...

    Hibernate Interview Questions

    What is HQL in Hibernate?

    HQL is the acronym of Hibernate Query Language.It considers the java objects in a similar way as that of the SQL. It is..

    Hibernate Interview Questions

    Explain the advantages of Hibernate?

    Some of the advantages of Hibernate are: It provides Simple Querying of data. An application server is not required to..