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

Bug 280530

Summary: [JPA 2.0] Mechanism for filtering JPA platform based on facet version in wizard
Product: [WebTools] Dali JPA Tools Reporter: Paul Fullbright <paul.fullbright>
Component: GeneralAssignee: Paul Fullbright <paul.fullbright>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: neil.hauge
Version: 2.2Keywords: plan
Target Milestone: 2.3 M3   
Hardware: PC   
OS: Windows Vista   
Whiteboard: JPA2.0

Description Paul Fullbright CLA 2009-06-16 17:43:45 EDT
When creating (or altering) a JPA faceted project, there should be a mechanism for limiting the choices of JPA platform version.  For instance, EclipseLink 2.0 would not be a viable choice for a JPA 1.0 faceted project.  (This is different from using an EclipseLink 2.0 library as the implementation for an EclipseLink 1.0 platformed project, which *should* be viable.)
Comment 1 Paul Fullbright CLA 2009-10-08 17:45:30 EDT
Added the optional <jpaFacetVersion> tag to the platform extension point.  All platforms which are specific to a particular JPA version should use this tag to be removed from the choices for all but that version.  Platforms which do not use this tag will still be available for all facet versions.
Comment 2 Paul Fullbright CLA 2009-10-08 17:47:37 EDT
Apologies, jpaFacetVersion is an attribute, not an element.

example:

   <jpaPlatform
      id="generic"
      label="%GENERIC_1_0_PLATFORM_LABEL"
      factoryClass="org.eclipse.jpt.core.internal.GenericJpaPlatformFactory"
      jpaFacetVersion="1.0"
      default="false">
   </jpaPlatform>