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.xml
insideWEB-INF
- using
orm.xml
insideMETA-INF
- using
persistence.xml
insideWEB-INF
- using
persistence.xml
insideMETA-INF
persistence.xml
has<mapping-file>META-INF/orm.xml</mapping-file>
persistence.xml
has<mapping-file>WEB-INF/orm.xml</mapping-file>
persistence.xml
with<persistence-unit name="same">
persistence.xml
with<persistence-unit name="different">
To no avail. I am trying to avoid touching the web fragment and portable (so nothing EclipseLink specific like SessionCustomizer
)