It seems there are overriding rules, extending the JPA spec and I haven't seen it in DN doc.
I have a annotation in classes, a persistence.xml, an orm.xml and an orm-h2.xml.
When I load the persistence-unit with mapping-file orm-h2.xml, then the mapping is loaded as follow :
- Class annotation
- orm.xml
- orm-h2.xml
The orm.xml which is never mentioned (or I'm missing something) is loaded by default, before the one specified in the persistence-unit.
That's interesting, I can have in this orm.xml mapping file the default mapping, and override it for H2 in orm-h2.xml...
Thanks for you support.
--
Stephane