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

Wrong error log in PCEnhancer when MappedSuperclass contains Id

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.2.2
    • Fix Version/s: None
    • Component/s: Enhance
    • Labels:
      None

      Description

      The patch for OPENJPA-2233 logs error message when embeddable entity has Id field. Because MappedSuperclass is set embedded only the message is shown if it contains an Id field. As far as I can see it doesn't break its behavior in any way.

      Don't know if it's just the log condition incorrect or maybe the MappedSuperclass shouldn't be set embedded only in AnnotationPersistenceMetaDataParser lines [555,558]:
      // while the spec only provides for embedded exclusive, it doesn't
      // seem hard to support otherwise
      if (entity == null)
      meta.setEmbeddedOnly(true);

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              bumer Bartosz Jakubowski

              Dates

              • Created:
                Updated:

                Issue deployment