weixin_41724818 2018-04-06 07:06 采纳率: 0%
浏览 593
已结题

Hibernate自建数据库的问题

clazz--->class com.lyc.oa.domain.Role
2018-04-06 15:04:12,688 ERROR [SchemaUpdate.java:212] : Unsuccessful: create table lyc_role (id longint not null, name varchar(255), description varchar(255), primary key (id))
2018-04-06 15:04:12,690 ERROR [SchemaUpdate.java:213] : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'longint not null, name varchar(255), description varchar(255), primary key (id))' at line 1
clazz--->class com.lyc.oa.domain.User
SessionImpl(PersistenceContext[entityKeys=[],collectionKeys=[]];ActionQueue[insertions=[] updates=[] deletions=[] collectionCreations=[] collectionRemovals=[] collectionUpdates=[]])
clazz--->class com.lyc.oa.domain.Role
2018-04-06 15:04:12,967 ERROR [SchemaUpdate.java:212] : Unsuccessful: create table lyc_role (id longint not null, name varchar(255), description varchar(255), primary key (id))
2018-04-06 15:04:12,967 ERROR [SchemaUpdate.java:213] : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'longint not null, name varchar(255), description varchar(255), primary key (id))' at line 1
clazz--->class com.lyc.oa.domain.User
Hibernate: insert into lyc_user (name, id) values (?, ?)
Hibernate: insert into lyc_user (name, id) values (?, ?)
clazz--->class com.lyc.oa.domain.Role
2018-04-06 15:04:13,202 ERROR [SchemaUpdate.java:212] : Unsuccessful: create table lyc_role (id longint not null, name varchar(255), description varchar(255), primary key (id))
2018-04-06 15:04:13,203 ERROR [SchemaUpdate.java:213] : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'longint not null, name varchar(255), description varchar(255), primary key (id))' at line 1
clazz--->class com.lyc.oa.domain.User
com.lyc.oa.test.TestAction@73331054

出现这些错误,要怎么解决

  • 写回答

6条回答 默认 最新

  • weixin_41724818 2018-04-06 07:19
    关注

    2018-04-06 15:04:12,967 ERROR [SchemaUpdate.java:212] : Unsuccessful: create table lyc_role (id longint not null, name varchar(255), description varchar(255), primary key (id))
    2018-04-06 15:04:12,967 ERROR [SchemaUpdate.java:213] : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'longint not null, name varchar(255), description varchar(255), primary key (id))' at line 1

    该怎么解决

    评论

报告相同问题?

悬赏问题

  • ¥15 数值计算均差系数编程
  • ¥15 redis-full-check比较 两个集群的数据出错
  • ¥15 Matlab编程问题
  • ¥15 训练的多模态特征融合模型准确度很低怎么办
  • ¥15 kylin启动报错log4j类冲突
  • ¥15 超声波模块测距控制点灯,灯的闪烁很不稳定,经过调试发现测的距离偏大
  • ¥15 import arcpy出现importing _arcgisscripting 找不到相关程序
  • ¥15 onvif+openssl,vs2022编译openssl64
  • ¥15 iOS 自定义输入法-第三方输入法
  • ¥15 很想要一个很好的答案或提示