首页 > 编程语言 >Mybatis-Plus源码-自增主键填充到实体

Mybatis-Plus源码-自增主键填充到实体

时间:2024-08-02 16:17:59浏览次数:16  
标签:自增 ibatis 源码 baomidou executor apache org com 主键

 

#mybatis-3.5.10 + mybatisPlus-3.5.2
#mybatis-plus自增id策略下何时填充id到实体
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl#saveOrUpdate 
  com.baomidou.mybatisplus.extension.service.IService#save
    com.baomidou.mybatisplus.core.override.MybatisMapperProxy#invoke
      com.baomidou.mybatisplus.core.override.MybatisMapperProxy.PlainMethodInvoker#invoke
        com.baomidou.mybatisplus.core.override.MybatisMapperMethod#execute
           org.mybatis.spring.SqlSessionTemplate#insert(java.lang.String, java.lang.Object)
             org.apache.ibatis.executor.CachingExecutor#update
               org.apache.ibatis.executor.SimpleExecutor#doUpdate
                 org.apache.ibatis.session.Configuration#newStatementHandler
                   com.baomidou.mybatisplus.core.MybatisParameterHandler#process   #填充主键id-非自增
                        com.baomidou.mybatisplus.core.MybatisParameterHandler#populateKeys 
                          org.apache.ibatis.session.Configuration#newResultSetHandler
                            org.apache.ibatis.executor.SimpleExecutor#prepareStatement  #获取连接
                              com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor#intercept  #执行拦截器
                                org.apache.ibatis.executor.statement.BaseStatementHandler#prepare  
                                  org.apache.ibatis.executor.statement.PreparedStatementHandler#instantiateStatement #打印sql语句
                                    org.apache.ibatis.executor.statement.PreparedStatementHandler#update
                                      com.zaxxer.hikari.pool.ProxyPreparedStatement#execute
                                        org.apache.ibatis.executor.keygen.Jdbc3KeyGenerator#processBatch
                                          org.apache.ibatis.executor.keygen.Jdbc3KeyGenerator#assignKeys
                                            org.apache.ibatis.executor.keygen.Jdbc3KeyGenerator.KeyAssigner#assign #填充主键id-自增
                                    
              

 

标签:自增,ibatis,源码,baomidou,executor,apache,org,com,主键
From: https://www.cnblogs.com/smileblogs/p/18339009

相关文章