确认
当前程序版本
3.5.7
问题描述
使用com.baomidou.mybatisplus.extension.injector.methods.InsertBatchSomeColumn
插入数据时提示The value specified for generated column 'combined_status' in table 'xxx_table' is not allowed.
设置@TableField(exist = false)
是可以插入,但是也查不到了😂
详细堆栈日志
Comment From: miemieYaho
不知道,建议你百度,一般都是数据库不支持
Comment From: firmianaQ
不知道,建议你百度,一般都是数据库不支持
我意思是@TableField注解里没有这种虚拟列的标识,现在只有手动处理,判断字段名是不是虚拟列
Comment From: miemieYaho
目前没这功能
Comment From: miemieYaho
或者你自己设置@TableField#insertStrategy=never
然后设置InsertBatchSomeColumn#predicate
进行过滤
Comment From: firmianaQ
或者你自己设置
@TableField#insertStrategy=never
然后设置InsertBatchSomeColumn#predicate
进行过滤
谢谢哥,这个可以,还要updateStrategy=never