So I have the following:
- a web fragment that provides a REST API and uses JPA to deal with entities that can be embedded in an existing application.
- an web application that has the web fragment in
WEB-INF/lib
I am trying to override the schema from the default to a different one from the web application
I have tried combinations of:
- using
orm.xmlinsideWEB-INF - using
orm.xmlinsideMETA-INF - using
persistence.xmlinsideWEB-INF - using
persistence.xmlinsideMETA-INF persistence.xmlhas<mapping-file>META-INF/orm.xml</mapping-file>persistence.xmlhas<mapping-file>WEB-INF/orm.xml</mapping-file>persistence.xmlwith<persistence-unit name="same">persistence.xmlwith<persistence-unit name="different">
To no avail. I am trying to avoid touching the web fragment and portable (so nothing EclipseLink specific like SessionCustomizer)