You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "Milosz Tylenda (JIRA)" <ji...@apache.org> on 2009/01/15 19:46:59 UTC

[jira] Commented: (OPENJPA-834) State field mapped to XML column has incorrect value when loaded from database

    [ https://issues.apache.org/jira/browse/OPENJPA-834?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12664215#action_12664215 ] 

Milosz Tylenda commented on OPENJPA-834:
----------------------------------------

The XJC generator can be forced to generate setters for collections by using a plug-in [1]. The manual could be updated with that information.

[1] https://jaxb2-commons.dev.java.net/collection-setter-injector/

> State field mapped to XML column has incorrect value when loaded from database
> ------------------------------------------------------------------------------
>
>                 Key: OPENJPA-834
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-834
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 1.3.0, 2.0.0
>         Environment: Database with XML column support
>            Reporter: Milosz Tylenda
>         Attachments: OPENJPA-834.patch
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.