JPA-based applications can't connect to a database on their own. Rather, they need help in terms of what credentials to use, which schema to seek, which JDBC driver to select and which annotated ...
Application data should be held in a database or in configuration files, but never hardcoded in the application itself. Developers don’t need to think about a configuration file format: XML is the ...