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

      public void onInsert(Object entity)
      插入前置处理 自动填充:createBy, creator, updateBy, updater
      Specified by:
      onInsert in interface com.mybatisflex.annotation.InsertListener
    • onUpdate

      public void onUpdate(Object entity)
      更新前置处理 自动填充:updateBy, updater
      Specified by:
      onUpdate in interface com.mybatisflex.annotation.UpdateListener