萌新求解:spring data jpa @ManyToOne 注解使用update方法启动出错

aptx1048576 2018-04-02 11:05:18
spring boot项目使用的版本:1.5几(貌似吧...)
出现问题:在实体类下面使用了@ManyToOne注解,使用ddl-auto的create、create-drop和none均可以启动成功,唯独使用ddl-auto的配置不能启动成功
报错信息节选:
Unable to build Hibernate SessionFactory; nested exception is org.hibernate.tool.schema.spi.SchemaManagementException: Unable to execute schema management to JDBC target [create table routine (rid integer not null auto_increment, alarm integer, credit integer, day integer not null, end_time integer not null, index integer not null, location varchar(255), name varchar(255) not null, start_time integer not null, week integer not null, user_username integer not null, primary key (rid))]
其他的报错和这个类似
...全文
357 回复 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

81,122

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧