Open powerLeePlus opened 3 years ago
Mybatis Generator生成表字段status时,自动带上了``,如下:
@Column(name = "`status`") private Integer status;
然后发现使用selectByPrimaryKey查询时,status无法赋上值;
selectByPrimaryKey
去掉``就好了
这是怎么回事,有人遇到过吗,是bug吗。还是Mybatis Generator的bug
Mybatis Generator生成表字段status时,自动带上了``,如下:
然后发现使用
selectByPrimaryKey
查询时,status无法赋上值;去掉``就好了
这是怎么回事,有人遇到过吗,是bug吗。还是Mybatis Generator的bug