CONTENTS DELETED
The author has deleted this message.
|
What you want to do is define a mapping that doesn't
actually get read or written to an instance variable, and so can only be
used for queries. So just define a Basket->items mapping, and send it
the message #beForPseudoVariable
At 05:05 PM 4/21/2009, VAM wrote: Hi! --
Alan Knight [|], Engineering Manager, Cincom Smalltalk
_______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
CONTENTS DELETED
The author has deleted this message.
|
Ah. Then what you want to do, I think, is create a
relationship mapping to Basket (as a OneToOne), make it read-only and
then do
basketMapping query retrieve: [:each | (each quantity * each price) sum]. but I haven't tried this, it's just off the top of my head. I'll check it out tomorrow. At 05:03 PM 4/22/2009, VAM wrote: Hm-m, I think than I cannot right described my idea. --
Alan Knight [|], Engineering Manager, Cincom Smalltalk
_______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
Free forum by Nabble | Edit this page |