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

Wrong PersistentAttributeType returned for @Embedded types

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0
    • 2.0.0
    • jpa
    • None
    • Patch Available

    Description

      Attribute.getPersistentAttributeType() should return PersistentAttributeType.EMBEDDED for @Embedded types.
      It returns PersistentAttributeType.ONE_TO_ONE now.

      I guess this also has effects on Attribute.isAssociation() which returns true for @Embedded types.

      Attachments

        1. openjpa-1611.tar
          7 kB
          Oliver Ringel

        Activity

          People

            faywang Fay Wang
            oringel Oliver Ringel
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: