Re: Conflicting results from calls to NucleusJDOHelper.isDirty()


JDOHelper.isDirty returns based on the object state (JDOHelper.getObjectState) and yours is P_NEW.
NucleusJDOHelper(DataNucleusHelperJDO in v6).getDirtyFields returns based on any specific fields being marked dirty due to being updated. Your fields have not been updated (since meeting the persistence process and having a StateManager assigned).

JDOHelper.getObjectState tells you extra info about what type of operation is happening and you should make use of that

Join to automatically receive all group messages.