I think LifecycleCallbacks is needed for fields, not the mapper itself.
-------------------------------------
night_stalker<[email protected]> wrote:
I need to add a beforeSave() callback, so I wrote:
class X extends LongKeyedMapper[X] with IdPK with
LifecycleCallbacks {
def getSingleton = X
def beforeSave {
println("hi!")
}
...
}
object X extends X with LongKeyedMetaMapper[X] {
...
}
Then got a compile error:
[ERROR] X.scala:35: error: error overriding method
beforeValidation in trait LifecycleCallbacks of type => Unit;
[INFO] method beforeValidation in trait MetaMapper of type => List
[(com.lawsite.model.precedent.PrecedentContent) => Unit] needs
`override' modifier
Is it a bug or, am I doing something wrong ?
--
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.
--
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.