Package com.elitesland.ystdms.sys.config
Class MyBatisEntityListener
java.lang.Object
com.elitesland.ystdms.sys.config.MyBatisEntityListener
- All Implemented Interfaces:
com.mybatisflex.annotation.InsertListener,com.mybatisflex.annotation.Listener,com.mybatisflex.annotation.UpdateListener,Comparable<com.mybatisflex.annotation.Listener>
public class MyBatisEntityListener
extends Object
implements com.mybatisflex.annotation.InsertListener, com.mybatisflex.annotation.UpdateListener
MyBatis-Flex 实体监听器
自动填充创建人、更新人信息
-
Constructor Details
-
MyBatisEntityListener
public MyBatisEntityListener()
-
-
Method Details
-
onInsert
插入前置处理 自动填充:createBy, creator, updateBy, updater- Specified by:
onInsertin interfacecom.mybatisflex.annotation.InsertListener
-
onUpdate
更新前置处理 自动填充:updateBy, updater- Specified by:
onUpdatein interfacecom.mybatisflex.annotation.UpdateListener
-