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

A default Schema defined in a PU default (<persistence-unit-defaults>) in an orm.xml file is not being honored.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.1.1, 2.2.3, 2.3.0, 2.4.0
    • Fix Version/s: 2.2.3, 2.4.0
    • Component/s: jpa
    • Labels:
      None

      Description

      Take the following entry in an orm.xml file:

      <persistence-unit-metadata>
      <persistence-unit-defaults>
      <schema>schemaInPUDefaults</schema>
      </persistence-unit-defaults>
      </persistence-unit-metadata>

      Lets say this is the ONLY schema defined in the entire app, then this schema should be used by default (the spec clearly defines how the defaults in <persistence-unit-defaults> should be used by a provider). However, this schema is not used by OpenJPA. I have a test to recreate this issue and I'm working to provide a fix.

      Thanks,

      Heath Thomann

        Attachments

          Activity

            People

            • Assignee:
              jpaheath Heath Thomann
              Reporter:
              jpaheath Heath Thomann
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: