Error executing DDL "alter table sys_role_menu add constraint FKf3mb报错了?

源码节点 发布于 10/09 23:23
阅读 245
收藏 0

【DevOps必读】产品经理与程序员之间如何破局?>>>

Hibernate: alter table sys_role_menu add constraint FKf3mud4qoc7ayew8nml4plkevo foreign key (menu_id) references sys_menu (id)
2020-10-09 23:20:34.249  WARN 5836 --- [  restartedMain] o.h.t.s.i.ExceptionHandlerLoggedImpl     : GenerationTarget encountered exception accepting command : Error executing DDL "alter table sys_role_menu add constraint FKf3mud4qoc7ayew8nml4plkevo foreign key (menu_id) references sys_menu (id)" via JDBC Statement

org.hibernate.tool.schema.spi.CommandAcceptanceException: Error executing DDL "alter table sys_role_menu add constraint FKf3mud4qoc7ayew8nml4plkevo foreign key (menu_id) references sys_menu (id)" via JDBC Statement
    at org.hibernate.tool.schema.internal.exec.GenerationTargetToDatabase.accept(GenerationTargetToDatabase.java:67) ~[hibernate-core-5.3.9.Final.jar:5.3.9.Final]
    at org.hibernate.tool.schema.internal.AbstractSchemaMigrator.applySqlString(AbstractSchemaMigrator.java:559) [hibernate-core-5.3.9.Final.jar:5.3.9.Final]
    at org.hibernate.tool.schema.internal.AbstractSchemaMigrator.applySqlStrings(AbstractSchemaMigrator.java:504) [hibernate-core-5.3.9.Final.jar:5.3.9.Final]
    at org.hibernate.tool.schema.internal.AbstractSchemaMigrator.applyForeignKeys(AbstractSchemaMigrator.java:433) [hibernate-core-5.3.9.Final.jar:5.3.9.Final]

加载中
0
yong9981
yong9981

Hibernate是高手的玩具。还是老老实实自己写DDL吧。

返回顶部
顶部