Uploaded image for project: 'OpenJPA'
  1. OpenJPA
  2. OPENJPA-1203

JPA2 - createEMF should return null for unhandled PUs

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.0.0
    • 2.0.0-M3
    • docs
    • 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.

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            drwoods Donald Woods
            drwoods Donald Woods
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment