Mybatis-plus: Could not find @TableId in Class这个警告可以关掉吗

Created on 13 Oct 2019  ·  3Comments  ·  Source: baomidou/mybatis-plus

当前使用版本(必须填写清楚,否则不予处理)

3.5.5

该问题是怎么引起的?(最新版上已修复的会直接close掉)

正常启动就会有

重现步骤

正常启动就会有

报错信息

Could not find @TableId in Class

Most helpful comment

因为有些表没有主键,怎么能够在实体类中设置@Tableld呢

All 3 comments

不能

因为有些表没有主键,怎么能够在实体类中设置@Tableld呢

同问,对于有复合主键的表,无法设置@TableId,请问如何避免Warning

谢谢

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sunqqqq picture sunqqqq  ·  3Comments

GeneralLHW picture GeneralLHW  ·  10Comments

FelixLiuSheng picture FelixLiuSheng  ·  8Comments

sks-lwei picture sks-lwei  ·  6Comments

diaoge666 picture diaoge666  ·  3Comments