Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 341397

Summary: JPA javax.persistence bundle should add "jpa" property
Product: z_Archived Reporter: Shaun Smith <shaun.smith>
Component: LibraAssignee: Kaloyan Raev <kaloyan>
Status: CLOSED FIXED QA Contact: Kaloyan Raev <kaloyan>
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on:    
Bug Blocks: 341398    

Description Shaun Smith CLA 2011-03-30 13:21:23 EDT
According to the OSGi Enterprise Spec JPA persistence bundles should include the "jpa" property on their import of javax.persistence to identify the Java EE numbered version of JPA they wish to use.  See discussion here: http://wiki.eclipse.org/EclipseLink/Examples/OSGi#Importing_Javax.Persistence_2.0

Libra automatically adds an import for the javax.persistence package when a bundle has the JPA facet enabled however it should also add either:

   jpa="2.0"

or

   jpa="1.0"

depending on the JPA version specified on the JPA facet.
Comment 1 Kaloyan Raev CLA 2011-04-19 10:59:29 EDT
Fixed in the master branch. Will be delivered with Indigo M7. 
Meanwhile you can verify the fix by updating your IDE from the following p2 repository generated by the Hudson build:
https://hudson.eclipse.org/hudson/job/libra/lastSuccessfulBuild/artifact/targetPlatform/
Comment 2 Kaloyan Raev CLA 2011-08-24 09:57:44 EDT
Closing