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:
Srinivasa Segu 2006-12-22 21:34:48 +00:00
parent 2508046403
commit 89f0148fb3
1 changed files with 2 additions and 0 deletions

View File

@ -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 {