• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Same value with different precision causes database updates
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Same value with different precision causes database updates


  • Subject: Re: Same value with different precision causes database updates
  • From: Henrique Prange <email@hidden>
  • Date: Wed, 17 Jul 2013 13:20:56 -0300

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 <email@hidden> wrote:

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 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).

Cheers,

Henrique

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Same value with different precision causes database updates (From: Henrique Prange <email@hidden>)
 >Re: Same value with different precision causes database updates (From: John Huss <email@hidden>)

  • Prev by Date: Re: Same value with different precision causes database updates
  • Next by Date: Searching for non-empty toMany relationships...
  • Previous by thread: Re: Same value with different precision causes database updates
  • Next by thread: Searching for non-empty toMany relationships...
  • Index(es):
    • Date
    • Thread