OpenJPA
  1. OpenJPA
  2. OPENJPA-1152 OpenJPA 2.0 iteration 9 primary task
  3. OPENJPA-1076

PersistenceProviderResolver interface and PersistenceProviderResolverHolder class

    Details

    • Type: Sub-task Sub-task
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0-M2
    • Fix Version/s: 2.0.0-M3
    • Component/s: third-party
    • Labels:
      None

      Description

      Implement the PersistenceProviderResolver interface and PersistenceProviderResolverHolder classes in the JPA2 API Spec over in Geronimo.

      1. test_patch.txt
        16 kB
        Dianne Richards

        Issue Links

          Activity

          Donald Woods made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Hide
          Donald Woods added a comment -

          Testcases from Dianne checked into trunk as r903328.

          Show
          Donald Woods added a comment - Testcases from Dianne checked into trunk as r903328.
          Hide
          Donald Woods added a comment -

          Checked with Albert and I'll take this todo off his plate.

          Show
          Donald Woods added a comment - Checked with Albert and I'll take this todo off his plate.
          Dianne Richards made changes -
          Attachment test_patch.txt [ 12431433 ]
          Hide
          Dianne Richards added a comment -

          Attaching a patch of test cases

          Show
          Dianne Richards added a comment - Attaching a patch of test cases
          Donald Woods made changes -
          Fix Version/s 2.0.0-M3 [ 12314148 ]
          Fix Version/s 2.0.0 [ 12314019 ]
          Affects Version/s 2.0.0-M2 [ 12313483 ]
          Donald Woods made changes -
          Link This issue relates to OPENJPA-1203 [ OPENJPA-1203 ]
          Donald Woods made changes -
          Status Reopened [ 4 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Darren Woods committed 798662 (1 file)
          Reviews: none

          OPENJPA-1076 Handle changes in geronimo-jpa_2.0_spec Rev798659 to not wrapper all exceptions as PersistenceExceptions and allow the spec to call other providers it discovers. We'll keep the createEMF behavior of returning exceptions sometimes instead of null, until we see if the JPA2 TCK forces the issue....

          Darren Woods committed 798635 (1 file)
          Reviews: none

          OPENJPA-1076 revert accidential change to pom.xml

          Darren Woods committed 798616 (2 files)
          Reviews: none

          OPENJPA-1076 cleanup code formatting and add some comments about the current behavior of returning exceptions instead of null

          Hide
          Donald Woods added a comment - - edited

          Spec code Rev798212 for Persistence.crateEMF method updated to give each provider a chance to create a EMF until one is returned. If we only have one provider, then rethrow any of its exceptions. Otherwise, if no providers return an EMF, then throw an exception to preserve the old 1.0 behavior.

          Show
          Donald Woods added a comment - - edited Spec code Rev798212 for Persistence.crateEMF method updated to give each provider a chance to create a EMF until one is returned. If we only have one provider, then rethrow any of its exceptions. Otherwise, if no providers return an EMF, then throw an exception to preserve the old 1.0 behavior.
          Hide
          Donald Woods added a comment -

          Spec code in javax.persistence.Persistence.createEntityManagerFactory() updated in Rev797072.
          Waiting for discussion about if we want to allow createEMF() to continue creating an explicit provider before closing this.

          Show
          Donald Woods added a comment - Spec code in javax.persistence.Persistence.createEntityManagerFactory() updated in Rev797072. Waiting for discussion about if we want to allow createEMF() to continue creating an explicit provider before closing this.
          Donald Woods made changes -
          Resolution Fixed [ 1 ]
          Status Resolved [ 5 ] Reopened [ 4 ]
          Hide
          Donald Woods added a comment -

          Need to update javax.persistence.Persistence.createEntityManagerFactory() to use this...

          Show
          Donald Woods added a comment - Need to update javax.persistence.Persistence.createEntityManagerFactory() to use this...
          Show
          Donald Woods added a comment - Updated geronimo-jpa_2.0 artifacts were published as - https://repository.apache.org/content/repositories/snapshots/org/apache/geronimo/specs/geronimo-jpa_2.0_spec/1.0-EA5-SNAPSHOT/geronimo-jpa_2.0_spec-1.0-EA5-20090722.191803-3.jar
          Donald Woods made changes -
          Donald Woods made changes -
          Status In Progress [ 3 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Hide
          Donald Woods added a comment -

          Added to geronimo-jpa_2.0_spec-1.0-EA5-SNAPSHOT using GERONIMO-4410 as Rev796840.

          Show
          Donald Woods added a comment - Added to geronimo-jpa_2.0_spec-1.0-EA5-SNAPSHOT using GERONIMO-4410 as Rev796840.
          Donald Woods made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          Donald Woods made changes -
          Description Implement the javax.persistence.spi.PersistenceProviderResolverHolder class and javax.persistence.Persistence.getPersistenceUtil() method in the JPA2 API Spec over in Geronimo. Implement the PersistenceProviderResolver interface and PersistenceProviderResolverHolder classes in the JPA2 API Spec over in Geronimo.
          Hide
          Donald Woods added a comment -

          Dummy impl of Persistence.getPersistenceUtil() added to geronimo-jpa-2.0 spec in Rev793637.

          Show
          Donald Woods added a comment - Dummy impl of Persistence.getPersistenceUtil() added to geronimo-jpa-2.0 spec in Rev793637.
          Donald Woods made changes -
          Field Original Value New Value
          Fix Version/s 2.0.0 [ 12314019 ]
          Fix Version/s 2.0.0-M2 [ 12313483 ]
          Description Implement the PersistenceProviderResolver interface and PersistenceProviderResolverHolder classes in the JPA2 API Spec over in Geronimo. Implement the javax.persistence.spi.PersistenceProviderResolverHolder class and javax.persistence.Persistence.getPersistenceUtil() method in the JPA2 API Spec over in Geronimo.
          Donald Woods created issue -

            People

            • Assignee:
              Donald Woods
              Reporter:
              Donald Woods
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development