Re: Same value with different precision causes database updates

2013-07-17 Thread Henrique Prange
Hi John, Changing the setter is a fair enough solution to fix the problem for only one property. Thanks. :) Cheers, Henrique On 16/07/2013, at 20:50, John Huss wrote: > I would just override takeStoredValueForKey in your EOs base class, or change > the setters for these fields in your EO te

Re: Same value with different precision causes database updates

2013-07-16 Thread John Huss
I would just override takeStoredValueForKey in your EOs base class, or change the setters for these fields in your EO template. On Tuesday, July 16, 2013, Henrique Prange wrote: > Hi all, > > Is there a general way to make EOF use the compareTo method for > BigDecimals instead of equals? I'm havi

Same value with different precision causes database updates

2013-07-16 Thread Henrique Prange
Hi all, Is there a general way to make EOF use the compareTo method for BigDecimals instead of equals? I'm having problems with a property of precision 10. Because of the way the value is formatted, EOF always trigger an update even though the values are the same (and not changed by anyone). C