Configuration File:
Note: if Pojo class member variables and Database column values are same no need to specify the column
- Entry's in this file helps to Hibernate software to communicate with the Database software ,because this configuration fiile contains Driver details like url,driver class name,username and password
- Entry's in the configuration file will be written as key,value pairs where key is fixed Hibernate property and values are changes bases on the database software we use
- hibernate.connection.driver_class
- hibernate.connection.username
- hibernate.connection.password
- hibernate.connection.url
Note: In Hibernate Configuration file hibernate is optional
Mapping File:
- In Mapping file we write o-r mapping configuration like mapping class with table mapping member variable with database table columns etc..
- In one Hibernate Application's we can take one/more mapping files,all these mapping files must be specified in configuration file
Note: if Pojo class member variables and Database column values are same no need to specify the column
values

No comments:
Post a Comment