Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 330126 - EMF service is not visible when punit has mapping files
Summary: EMF service is not visible when punit has mapping files
Status: RESOLVED FIXED
Alias: None
Product: Gemini.JPA
Classification: RT
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 1.0.0 RC2   Edit
Assignee: Michael Keith CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-12 13:39 EST by Michael Keith CLA
Modified: 2011-07-04 09:17 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Keith CLA 2010-11-12 13:39:58 EST
The EMF service seems to be registered fine but is not visible to service listener tests. See TestMappingFileElement and TestOrmMappingFile tests.
Comment 1 Michael Keith CLA 2011-07-04 09:17:27 EDT
Need to import the javax.persistence package from the punit (even though it does not strictly require it since everything is in a mapping file) in order to allow the EMF to be registered in the service registry using the punit context.

Tests changed to add import.