Uploaded image for project: 'JBoss Enterprise Application Platform 4 and 5'
  1. JBoss Enterprise Application Platform 4 and 5
  2. JBPAPP-1709

Entity manager 3.3.x should use ejb3-persistence.jar 1.0.1.GA; EAP 4.3 FPs ship 1.0.GA instead

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 4.3.0.GA_CP02_FP01, 4.3.0.GA_CP03_FP01, 4.3.0.GA_CP04_FP01, 4.2.0.GA_CP07, 4.3.0.GA_CP05
    • Fix Version/s: TBD EAP 4
    • Component/s: Hibernate
    • Labels:
      None
    • Affects:
      Release Notes
    • Release Notes Text:
      Hide
      The version of <filename>ejb3-persistence.jar</filename> shipped with the current version of JBoss Enterprise Application Platform 4.x is incorrect. Hibernate Entity Manager currently ships <filename>ejb3-persistence.jar</filename> v1.0.0.GA, but it should use <filename>ejb3-persistence.jar</filename> 1.0.1.GA. There are two changes between the 1.0.0.GA and 1.0.1.GA versions of the JAR:
      <orderedlist>
      <listitem><para>The JPA specification defines the constant with a value that has a typo in the classname:
      <classname>javax.persistence.Persistence.PERSISTENCE_PROVIDER = &quot;javax.persistence.spi.PeristenceProvider&quot;</classname>.</para>
      <para>Because the JAR inluded in the JBoss Enterprise Application Platform does not include this typo, it is not compliant with the JPA specification. See <ulink url="http://opensource.atlassian.com/projects/hibernate/browse/EJB-321"/> for details.</para></listitem>
      <listitem><para>The Javadoc for <methodname>javax.persistence.Query.getSingleResult()</methodname> states that <exceptionname>EntityNotFoundException</exceptionname> will be thrown if there is no result. It should say <exceptionname>NoResultException</exceptionname>.</para></listitem></orderedlist>
      Show
      The version of <filename>ejb3-persistence.jar</filename> shipped with the current version of JBoss Enterprise Application Platform 4.x is incorrect. Hibernate Entity Manager currently ships <filename>ejb3-persistence.jar</filename> v1.0.0.GA, but it should use <filename>ejb3-persistence.jar</filename> 1.0.1.GA. There are two changes between the 1.0.0.GA and 1.0.1.GA versions of the JAR: <orderedlist> <listitem><para>The JPA specification defines the constant with a value that has a typo in the classname: <classname>javax.persistence.Persistence.PERSISTENCE_PROVIDER = &quot;javax.persistence.spi.PeristenceProvider&quot;</classname>.</para> <para>Because the JAR inluded in the JBoss Enterprise Application Platform does not include this typo, it is not compliant with the JPA specification. See <ulink url=" http://opensource.atlassian.com/projects/hibernate/browse/EJB-321 "/> for details.</para></listitem> <listitem><para>The Javadoc for <methodname>javax.persistence.Query.getSingleResult()</methodname> states that <exceptionname>EntityNotFoundException</exceptionname> will be thrown if there is no result. It should say <exceptionname>NoResultException</exceptionname>.</para></listitem></orderedlist>
    • Release Notes Docs Status:
      Documented as Known Issue
    • Docs QE Status:
      ASSIGNED

      Description

      The wrong version of ejb3-persistence.jar is being shipped with EAP 4.3 FPs.

      The version that should be released is based on http://anonhibernate.labs.jboss.com/jpa-api/tags/v1_0_1_GA/.

      The following are known issues in 1.0.GA that are corrected in 1.0.1:

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                gbadner Gail Badner
                Reporter:
                gbadner Gail Badner
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: