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

Erroneous message from the enhancer when a Mapped Superclass contains an @Id.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.1.2, 2.2.2, 2.2.1.1, 2.3.0, 2.4.0
    • Fix Version/s: 2.1.2, 2.2.1.1, 2.2.3, 2.4.0
    • Component/s: Enhance
    • Labels:
      None

      Description

      HI! I've discovered an issue which is pretty much as described in JIRA OPENJPA-2463. That is, when I have a MappedSuperclass with an @Id, I see this error:

      openjpa.Enhance: Error: The identity field defined in the com.yyy.zzz.MyEntity Embeddable is not supported.

      This error message is erroneously printed because of the fix via JIRA OPENJPA-2233. This JIRA was well intended for the case where an @Embeddable contains an @Id (a spec violation) but was too over reaching in that it also flagged an error for a MappedSuperclass with an @Id. I will provide a fix to ensure the error message is only printed when an @Embeddable contains an @Id.

      Thanks,

      Heath Thomann

        Issue Links

          Activity

          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit 1591681 from Heath Thomann in branch 'openjpa/branches/2.2.x'
          [ https://svn.apache.org/r1591681 ]

          OPENJPA-2478: Fixed erroneous message from the enhancer when a Mapped Superclass contains an @Id.

          Show
          jira-bot ASF subversion and git services added a comment - Commit 1591681 from Heath Thomann in branch 'openjpa/branches/2.2.x' [ https://svn.apache.org/r1591681 ] OPENJPA-2478 : Fixed erroneous message from the enhancer when a Mapped Superclass contains an @Id.
          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit 1591685 from Heath Thomann in branch 'openjpa/branches/2.3.x'
          [ https://svn.apache.org/r1591685 ]

          OPENJPA-2478: Fixed erroneous message from the enhancer when a Mapped Superclass contains an @Id.

          Show
          jira-bot ASF subversion and git services added a comment - Commit 1591685 from Heath Thomann in branch 'openjpa/branches/2.3.x' [ https://svn.apache.org/r1591685 ] OPENJPA-2478 : Fixed erroneous message from the enhancer when a Mapped Superclass contains an @Id.
          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit 1591689 from Heath Thomann in branch 'openjpa/trunk'
          [ https://svn.apache.org/r1591689 ]

          OPENJPA-2478: Fixed erroneous message from the enhancer when a Mapped Superclass contains an @Id.

          Show
          jira-bot ASF subversion and git services added a comment - Commit 1591689 from Heath Thomann in branch 'openjpa/trunk' [ https://svn.apache.org/r1591689 ] OPENJPA-2478 : Fixed erroneous message from the enhancer when a Mapped Superclass contains an @Id.
          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit 1591693 from Heath Thomann in branch 'openjpa/branches/2.1.x'
          [ https://svn.apache.org/r1591693 ]

          OPENJPA-2478: Fixed erroneous message from the enhancer when a Mapped Superclass contains an @Id.

          Show
          jira-bot ASF subversion and git services added a comment - Commit 1591693 from Heath Thomann in branch 'openjpa/branches/2.1.x' [ https://svn.apache.org/r1591693 ] OPENJPA-2478 : Fixed erroneous message from the enhancer when a Mapped Superclass contains an @Id.
          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit 1591696 from Heath Thomann in branch 'openjpa/branches/2.2.1.x'
          [ https://svn.apache.org/r1591696 ]

          OPENJPA-2478: Fixed erroneous message from the enhancer when a Mapped Superclass contains an @Id.

          Show
          jira-bot ASF subversion and git services added a comment - Commit 1591696 from Heath Thomann in branch 'openjpa/branches/2.2.1.x' [ https://svn.apache.org/r1591696 ] OPENJPA-2478 : Fixed erroneous message from the enhancer when a Mapped Superclass contains an @Id.

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development