discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Objective-C Object Persistency


From: Vaisburd, Haim
Subject: RE: Objective-C Object Persistency
Date: Fri, 14 Jan 2005 12:57:57 -0800

Andreas Höschler wrote:

> - (void)validateFreightCosts
> {
>       NSNumber *distance = [self valueForKey:@"transportorder.distance"];
>       NSNumber *rate = [self valueForKey:@"transportorder.rate"];
>       NSNumber *product = distance * rate
>       [self setFreightCosts: product];        
> }

> Now suppose that a user connects to the database and modifies the rate 
> of a transportorder. This should invalidate the property freighCosts in 
> all referenced deliveries, and this again must invalidate the value of 
> referenced stores.

We tried here to design a system that has no redundancy in the database.
That is, derived values are never stored in the database, but generated
in the object layer as the integral part of a query process.

Tima.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]