Added on pre persist and on pre update functions in timestampable trait