Re: updates to same value: why they happen?

2018-08-14 Thread ocs@ocs
Ha! Seems I have found the culprit. Thanks a lot for the advice >> changing type between Integer and Long? pursuing it further, it looks like the darned BigDecimal thing's equals work in a pretty weird way, considering exactly same values, just stored with a different scale, well, non-equal (th

Re: updates to same value: why they happen?

2018-08-14 Thread ocs@ocs
Chuck, > On 14 Aug 2018, at 7:37 PM, Chuck Hill wrote: > > Could there be some place in your code that is changing type between Integer > and Long? EOF would see that as a value change, though the value logged > would appear the same. thanks a lot, but actually I use BigDecimals for the attr

Re: updates to same value: why they happen?

2018-08-14 Thread Chuck Hill
Could there be some place in your code that is changing type between Integer and Long? EOF would see that as a value change, though the value logged would appear the same. Chuck From: Webobjects-dev on behalf of "ocs@ocs" Date: Tuesday, August 14, 2018 at 10:26 AM To: "webobjects-dev@lists

updates to same value: why they happen?

2018-08-14 Thread ocs@ocs
Gentlemen, my code logs out all database changes in the databaseContextWillPerformAdaptorOperations delegate method. Lately from these logs I have found that one of my applications tends to pretty often update an attribute to the same value it used to have before, like this: === 249 /tmp> fgre