Introducing the persistence.xml file

The persistence.xml file is generated during the reverse engineering process and defines the JPA configuration for a set of entity classes. This file is always located in the META-INF directory at the root of the classpath. Maven projects have a special directory named resources located in the src/main directory, which contains additional resources applicable for building the Java project. The resources directory is automatically copied by Maven to the root of the classpath when building the project. Open the file by double-clicking on it to display the Design view of the file in the editor:

Introducing the persistence.xml file

The Design view contains ...

Get Enterprise Application Development with Ext JS and Spring now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.