Recently I started a maven project to build an application for integrating
Spring, JPA, JSF
But in the automatically generated folder structure I can see one file named as
db.properties
and also I have one
persistence.xml
Now my question is that Database connection can be defined in either of these files, Can anybody tell me 1. Which way is better and why ? 2. Why there is db.properties file automatically generated while I already have persistence.xml ?