openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Fay Wang (JIRA)" <j...@apache.org>
Subject [jira] Created: (OPENJPA-1226) Can not merge entity with nested embeddable
Date Wed, 05 Aug 2009 00:14:14 GMT
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: 2.0.0


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.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message