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 2008/12/19 11:59:44 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=12658057#action_12658057 ] 

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

Heh, the issue is simpler - the Address class needs a setter for the street property. Otherwise ProxyBean.newInstance(Object) will not copy that property.

I will send a patch soon.


> 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
>
> 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.