OpenJPA
  1. OpenJPA
  2. OPENJPA-834

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

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.3.0, 2.0.0-M2
    • Fix Version/s: 1.3.0, 2.0.0-M2
    • Component/s: kernel
    • Labels:
      None
    • Environment:
      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.

      1. OPENJPA-834.patch
        1 kB
        Milosz Tylenda

        Issue Links

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              Milosz Tylenda
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development