JPA - orm.xml (Mapping Descriptor files)


orm.xml is a deployment descriptors describing the object-relational mapping.

The Xsd Schema file can be found:


The orm.xml file must be placed in the META-INF directory. Each provider will automatically search it in this place.

You can create several mapping files and placed them in a different location. In this case, you must list them in the mapping-file elements of the persistence.xml file:

<persistence-unit name="myPersistenceUnitName">

You do not need to explicitly list it

Powered by ComboStrap