Test and fix for TestStatelessUpdate.testStatelessRecursiveUpdateWithVersionField()

This commit is contained in:
Wolfgang Buchner
2014-04-24 02:34:01 +12:00
committed by Rob Bygrave
parent 4c4e084e43
commit 89f7d2bace
2 changed files with 45 additions and 6 deletions
@@ -765,15 +765,15 @@ public final class DefaultPersister implements Persister {
if (prop.isManyToMany()) {
skipSavingThisBean = targetDescriptor.isReference(ebi);
} else {
if (ebi.isNewOrDirty()) {
skipSavingThisBean = false;
// set the parent bean to detailBean
prop.setJoinValuesToChild(parentBean, detail, mapKeyValue);
} else if (targetDescriptor.isReference(ebi)) {
if (targetDescriptor.isReference(ebi)) {
// we can skip this one
skipSavingThisBean = true;
} else if (ebi.isNewOrDirty()) {
skipSavingThisBean = false;
// set the parent bean to detailBean
prop.setJoinValuesToChild(parentBean, detail, mapKeyValue);
} else {
// unmodified so skip depending on prop.isSaveRecurseSkippable();
skipSavingThisBean = saveSkippable;