mirror of https://github.com/apache/openjpa.git
Fix - DetachedStateManager to dirty the owning metadata in case of a dirtied embedded field
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@489772 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
2508046403
commit
89f0148fb3
|
@ -91,6 +91,8 @@ public class DetachedStateManager
|
|||
BrokerImpl broker = manager.getBroker();
|
||||
StateManagerImpl sm = null;
|
||||
if (_embedded) {
|
||||
if (_dirty.length () > 0)
|
||||
owner.dirty(ownerMeta.getFieldMetaData().getIndex());
|
||||
sm = (StateManagerImpl) broker.embed(_pc, _oid, owner, ownerMeta);
|
||||
((PersistenceCapable) toAttach).pcReplaceStateManager(this);
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue