openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeremy Bauer (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (OPENJPA-1226) Can not merge entity with nested embeddable
Date Wed, 10 Apr 2013 19:59:15 GMT

     [ https://issues.apache.org/jira/browse/OPENJPA-1226?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jeremy Bauer updated OPENJPA-1226:
----------------------------------

    Fix Version/s: 1.2.3
    
> Can not merge entity with nested embeddable
> -------------------------------------------
>
>                 Key: OPENJPA-1226
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-1226
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: kernel
>            Reporter: Fay Wang
>             Fix For: 1.2.3, 2.0.0-M3
>
>
> When an entity has nested embeddables, the merge operation fails with the following exception:
> org.apache.openjpa.persistence.ArgumentException:
> Cannot manipulate identity of type "com.ibm.wssvt.acme.annuity.common.bean.jpa.Address":
it's identity type is unknown.
>         at org.apache.openjpa.kernel.StateManagerImpl.<init>(StateManagerImpl.java:173)
>         at org.apache.openjpa.kernel.BrokerImpl.embed(BrokerImpl.java:2770)
>         at org.apache.openjpa.kernel.DetachedStateManager.attach(DetachedStateManager.java:106)
>         at org.apache.openjpa.kernel.AttachManager.attach(AttachManager.java:251)
>         at org.apache.openjpa.kernel.DetachedStateManager.attach(DetachedStateManager.java:244)
>         at org.apache.openjpa.kernel.AttachManager.attach(AttachManager.java:251)
>         at org.apache.openjpa.kernel.AttachStrategy.attachMap(AttachStrategy.java:462)
>         at org.apache.openjpa.kernel.DetachedStateManager.attach(DetachedStateManager.java:269)
>         at org.apache.openjpa.kernel.AttachManager.attach(AttachManager.java:251)
>         at org.apache.openjpa.kernel.AttachManager.attach(AttachManager.java:104)
>         at org.apache.openjpa.kernel.BrokerImpl.attach(BrokerImpl.java:3346)
>         at org.apache.openjpa.kernel.DelegatingBroker.attach(DelegatingBroker.java:1176)
>         at org.apache.openjpa.persistence.EntityManagerImpl.merge(EntityManagerImpl.java:852)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message