Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 341397 - JPA javax.persistence bundle should add "jpa" property
Summary: JPA javax.persistence bundle should add "jpa" property
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Libra (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Kaloyan Raev CLA
QA Contact: Kaloyan Raev CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 341398
  Show dependency tree
 
Reported: 2011-03-30 13:21 EDT by Shaun Smith CLA
Modified: 2022-02-24 11:24 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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