OpenJPA
  1. OpenJPA
  2. OPENJPA-1203

JPA2 - createEMF should return null for unhandled PUs

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: 2.0.0-M3
    • Component/s: docs
    • Labels:
      None

      Description

      JPA2 spec section 9.2 states - "If a provider does not qualify as the provider for the named persistence unit, it must return null when createEntityManagerFactory is invoked on it."
      But OpenJPA is throwing exceptions for all failure cases...
      For now, we'll keep the 1.x behavior, but may need to revisit this when we start running the JPA2 TCK.

        Issue Links

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development