There's a beta feature in the master branch, for now the test case is the only documentation there is :
if you want to update the time field before every update on a table you do :
override def callbacks = Seq(
beforeUpdate(yourTableOfA) call(_.updateTime = System.currentTimeMillis),
)
if you want to do it on all persistent types that extend a common ancestor type, you would do :
override def callbacks = Seq(
beforeUpdate[YourAncestorType] call(_.updateTime = System.currentTimeMillis),
)
ML
2011/8/24 Babel
<chp...@gmail.com>
Hello
I have a working schema to store contacts which I need to batch. I've
noticed the insertOrUpdate method that should be very useful but I
need to store the updateTime only on updates. Do someone already got
this problem? I had a look on squeryl schema and went through all the
documentation without finding the solution which does not seems so
unusual (probably my fault)
Many thanks in advance for any help