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 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 对于相关问题的求解与代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作
  • ¥15 求NPF226060磁芯的详细资料
  • ¥15 使用R语言marginaleffects包进行边际效应图绘制