欢迎投稿

今日深度:

用hibernate生成表时,字段名不能为order,hibernat

用hibernate生成表时,字段名不能为order,hibernateorder


今天在写代码时,想写一个menu的Model,其中一个字段名用到了order,怎么都无法创建表,查了之后才发现,原来order是mysql关键字,不能作为字段名。

不过用mysql navigator和phpmyadmin直接新建又可以!

www.htsjk.Com true http://www.htsjk.com/shujukunews/7736.html NewsArticle 用hibernate生成表时,字段名不能为order,hibernateorder 今天在写代码时,想写一个menu的Model,其中一个字段名用到了order,怎么都无法创建表,查了之后才发现,原来order是mysql关键字,不...
评论暂时关闭