Andy Jefferson wrote: >> Therefore, I'd like to kindly ask for a spec change: >> JDOHelper.makeDirty(...) and the corresponding >> PersistenceCapable.jdoMakeDirty(...) should work with detached objects >> as well. >> > > +1 but > "JDOHelper.makeDirty(...) and the corresponding > PersistenceCapable.jdoMakeDirty(...) should work with detached objects where > the specified field is loaded in the detached object" > since if the field is not loaded it makes no sense to mark it as dirty yet > not > have a new value ;-) >
I totally agree! Of course, makeDirty/jdoMakeDirty only makes sense for fields that have been loaded in the detached object. Will the method throw a javax.jdo.JDODetachedFieldAccessException or silently ignore non-loaded fields in detached objects?
