Mapper icon indicating copy to clipboard operation
Mapper copied to clipboard

selectByPrimaryKey查询无法正常赋值带``的属性

Open powerLeePlus opened this issue 3 years ago • 0 comments

Mybatis Generator生成表字段status时,自动带上了``,如下:

@Column(name = "`status`")
private Integer status;

然后发现使用selectByPrimaryKey查询时,status无法赋上值;

去掉``就好了

这是怎么回事,有人遇到过吗,是bug吗。还是Mybatis Generator的bug

powerLeePlus avatar Jun 04 '21 04:06 powerLeePlus