【发布时间】:2010-11-23 15:42:17
【问题描述】:
在 Jboss 服务器启动期间,我得到以下堆栈跟踪。我想知道为什么 JPA 试图改变看起来很好的表以及如何传递这些错误消息。 谢谢
2009-08-03 11:28:49,683 错误 [org.hibernate.tool.hbm2ddl.SchemaUpdate] 不成功:更改表 BDPARAMS 添加约束 FK61733C48FA34BFDC 外键 (ITEMID) 引用 RTELEMENT 2009-08-03 11:28:49,683 错误 [org.hibernate.tool.hbm2ddl.SchemaUpdate] 不成功:更改表 BDPARAMS 添加约束 FK61733C48FA34BFDC 外键 (ITEMID) 引用 RTELEMENT 2009-08-03 11:28:49,683 错误 [org.hibernate.tool.hbm2ddl.SchemaUpdate] ORA-02275:表中已经存在这样的引用约束
2009-08-03 11:28:49,683 错误 [org.hibernate.tool.hbm2ddl.SchemaUpdate] ORA-02275:表中已存在此类引用约束
2009-08-03 11:28:49,745 错误 [org.hibernate.tool.hbm2ddl.SchemaUpdate] 不成功:更改表内容添加约束 FK692B5EEC44F32395 外键(父 ID)引用内容 2009-08-03 11:28:49,745 错误 [org.hibernate.tool.hbm2ddl.SchemaUpdate] 不成功:更改表内容添加约束 FK692B5EEC44F32395 外键(父 ID)引用内容 2009-08-03 11:28:49,745 错误 [org.hibernate.tool.hbm2ddl.SchemaUpdate] ORA-02275:表中已经存在这样的引用约束
【问题讨论】:
-
您使用什么 RDBMS?你的 hibernate.hbm2ddl.auto 值的设置是什么?
-
我使用 Oracle 11 G,我使用更新 hibernate.hbm2ddl.auto。仅供参考,即使它显示这些错误应用程序已正确部署并且工作正常。但我想修复这个错误。