0
点赞
收藏
分享

微信扫一扫

实体类或属性名与数据库关键字冲突问题


表名于数据库中关键字冲突:

<1、通过<class name="User" table="myuser"> 

 <2、通过Tab键上面的 `` <class name="User" table="`myuser`">


属性名于数据库关键字冲突:

<1、<property name="birthday" column="mybirthday"/> 

<2、<property name="birthday" column="`mybirthday`"/>

举报

相关推荐

0 条评论