Sometimes a separate set of persistent entities is required for testing. If I have entities for tests, say, in the "core" module, then such entities won't be enhanced if I don't create a test-metadata.xml for the core tests. However, only persistence.xml should be required.
Sometimes a separate set of persistent entities is required for testing. If I have entities for tests, say, in the "core" module, then such entities won't be enhanced if I don't create a test-metadata.xml for the core tests. However, only persistence.xml should be required.
See the project attached.
Test project
enhancing-bug.zip
QA
To check that entities are enhanced you can: