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

State field mapped to XML column has incorrect value when loaded from database

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.3.0, 2.0.0-M2
    • 1.3.0, 2.0.0-M2
    • kernel
    • None
    • Database with XML column support

    Description

      The org.apache.openjpa.persistence.xmlmapping.xmlbindings.myaddress.Address is a class with JAXB annotations. It has a property street of type List<String>. When an entity containing Address in its state field is loaded from database, the street property is empty.

      My initial investigation led me to a conclusion that the issue is caused by a proxy returned from ProxyManagerImpl.newCustomProxy(Object) which does not behave correctly.

      Attachments

        1. OPENJPA-834.patch
          1 kB
          Milosz Tylenda

        Issue Links

          Activity

            People

              Unassigned Unassigned
              milosz Milosz Tylenda
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: