I have a test suite that runs my JPA entities across all the major JPA
providers.

None of my entities has a schema name in it; I want to keep it that way.

None of my entities are configured in any way other than annotations.

I understand from the JPA specification that if I put in a
<persistence-unit-defaults> element in my META-INF/orm.xml file, I can
indicate a default catalog and a default schema to use.

When I do this, indeed my EclipseLink and Hibernate tests pass.

My OpenJPA tests fail.

I then read this:
http://openjpa.208410.n2.nabble.com/best-way-to-set-default-schema-across-all-entities-td215796.html

I believe this is a misinterpretation of the specification.  Is there any
way to get OpenJPA to honor the persistence-unit-defaults element in the
orm.xml file and to apply it to entities that are not listed therein?

I am using OpenJPA 2.0.0-beta3 (not 2.0.1, since that has a
NullPointerException regression in named queries which I previously
documented).

Best,
Laird

Reply via email to