Re: [Lift] Re: method call from out of nowhere

2009-11-30 Thread Hannes
Timothy Perrett schrieb: >> The two defs only make sence together, that's why I put them together in >> one def. I think that's encapsulation...> - dont use while loops. period. >> you have a List[T], use foreach if you have a unit operation >> >> > > If you want encapsulation, because they "

Re: [Lift] Re: method call from out of nowhere

2009-11-30 Thread Hannes
Hi Marius, the method is called from an Actor, everytime a new order is created. I did override def afterCreate in my LimitOrder MetaObject. thanks. > In your code in what conditions joinOtherOrders gets called ? > > Br's, > Marius > > On Nov 29, 6:18 pm, Hannes wrote: > >> Hi Tim,> Hannes,

[Lift] Re: method call from out of nowhere

2009-11-29 Thread Timothy Perrett
> The two defs only make sence together, that's why I put them together in > one def. I think that's encapsulation...> - dont use while loops. period. you > have a List[T], use foreach if you have a unit operation > If you want encapsulation, because they "only make sense together", stick them in

[Lift] Re: method call from out of nowhere

2009-11-29 Thread Marius
You might want to try to trace the thread name as well ... On Nov 29, 6:49 pm, Marius wrote: > In your code in what conditions  joinOtherOrders gets called ? > > Br's, > Marius > > On Nov 29, 6:18 pm, Hannes wrote: > > > Hi Tim,> Hannes, > > > > Firstly, I really, really wouldn't write your code

[Lift] Re: method call from out of nowhere

2009-11-29 Thread Marius
In your code in what conditions joinOtherOrders gets called ? Br's, Marius On Nov 29, 6:18 pm, Hannes wrote: > Hi Tim,> Hannes, > > > Firstly, I really, really wouldn't write your code like that... > > > Things of note: > > - two defs inside defs... you usually wouldnt do this without a good re