Bug in ObjectDiff isNoop? (4.2.M1-SNAPSHOT from today)

Lon Varscsak <[email protected]>
Newsgroups gmane.comp.java.cayenne.devel
Message-ID <CALAw18zHL7p4kARacsq5QF3HoPmYhYPxWvMPji3k2-eiMBQRWw@mail.gmail.com>
I was thrown today when a "header" object didn't run through its
validateForSave() method when adding or deleting objects from a "detail".
It appears that isNoop is true for the header object because no base
attributes get modified.  When one is modified it alters the modFound
variable which ultimately gets returned from that method.  In the case of
To-many relationships, this variable is never modified (nor is the
relationship checked).  In the case of To-one relationships, it does appear
to do the right thing (just reading the code).

Am I missing something?

Thanks!

-Lon
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.