[Lift] Re: (created|updated|deleted)_(by|at) trait

2009-04-10 Thread David Pollak
The not overly helpful answer... please look for the IdPK trait... you can see how to do stuff like this. If you're still stuck, I'll provide a more helpful answer. On Fri, Apr 10, 2009 at 4:39 PM, Franz Bettag i...@fbettag.de wrote: Hey guys, i had the (simple) idea of creating a trait for

[Lift] Re: (created|updated|deleted)_(by|at) trait

2009-04-10 Thread Clemens Oertel
Hi Franz, Here's what I did, roughly: trait TimeStamped[OwnerType : ExtMapper[OwnerType]] { this: ExtMapper[OwnerType] = private val thisTyped = this.asInstanceOf[MapperType] object createdOn extends ExtMappedDateTime(thisTyped) with LifecycleCallbacks { override def