Spring-Hibernate Maven project- Part 3
Hibernate Configuration and Project Deployment In the previous post I created the hibernate mapping files for the Person-Address domain classes. In here we are going to create the hibernate configuration file which creates the database connection according to the defined URL, credentials and other properties. On the deplyment of the project, the hibernate configuration file is executed through the commands in pom.xml. We have to put the hibernate configuration file inside the src/main/resources directory. For that right cick on the directory, select new, select other. From there expand the hibernate icon and select Hibernate Configuration file (cfg.xml). Click Next Keep the default name "hibernate.cfg.xml" same and click Next Give the values in the appeared window give the values as follows. Make sure to verify your mysql username and password, and enter the corret one according to your mysql configuration. hibernate.cfg.xml <hibernate-configura