In addition to timestamping your domain class, you can tap into four event hooks: beforeInsert, befortUpdate, beforeDelete, and onLoad.
除了给域类添加时间戳,还可以引入4 个事件挂钩:beforeInsert、befortUpdate、beforeDelete和onload。
Timestamping a record is done many times throughout the life of a transaction for recording the time a transaction was created, was last modified, was last accessed, and so on.
在一个事务的整个生命周期内,需要多次记录时间戳,以便记下创建、最后一次修改、最后一次访问某一事务的时间。
Timestamping a record is done many times throughout the life of a transaction for recording the time a transaction was created, was last modified, was last accessed, and so on.
在一个事务的整个生命周期内,需要多次记录时间戳,以便记下创建、最后一次修改、最后一次访问某一事务的时间。
应用推荐