OpenJPA
  1. OpenJPA
  2. OPENJPA-1226

Can not merge entity with nested embeddable

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.2.3, 2.0.0-M3
    • Component/s: kernel
    • Labels:
      None

      Description

      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)

        Activity

          People

          • Assignee:
            Unassigned
            Reporter:
            Fay Wang
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development