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.
Never Miss an Articles from us.
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)...
HQL is the acronym of Hibernate Query Language.It considers the java objects in a similar way as that of the SQL. It is..
Some of the advantages of Hibernate are: It provides Simple Querying of data. An application server is not required to..