On Fri, Dec 18, 2009 at 9:28 AM, night_stalker <[email protected]> wrote:

> Got it, I was a little bit confused :)
>
> class X extends LongKeyedMapper[X] with IdPK {
>   ...
> }
> object X extends X with LongKeyedMetaMapper[X] {
>   override def beforeSave = List((x: X) => {
>    println("hi")
>    ()
>  })
> }
>

When you override this method, you *must* call super:

override def beforeSave = doHi _ :: super.beforeSave // You *must* include
the super list

private def doHi(inst: X) {println("hi")}




>
> On Dec 18, 11:50 pm, Naftoli Gugenheim <[email protected]> wrote:
> > I think LifecycleCallbacks is needed for fields, not the mapper itself.
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "Lift" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<liftweb%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/liftweb?hl=en.
>
>
>


-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Surf the harmonics

--

You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.


Reply via email to