使用Hibernate 4.1在SchemaExport期间出现Hsqldb错误

时间:2012-10-12 21:30:44

标签: java hibernate unit-testing hsqldb schemaexport

运行Hibernate的SchemaExport时如何摆脱以下错误?它实际上似乎没有引起问题 - 我的测试仍然运行得很好 - 但我不喜欢看到错误并且不得不向下滚动以查看测试出了什么问题。

有没有办法摆脱它们 - 通过解决错误或只是让它安静?

17:28:19 ERROR SchemaExport:425 - HHH000389: Unsuccessful: alter table click drop constraint FK5A5C588CBB8DB5
17:28:19 ERROR SchemaExport:426 - user lacks privilege or object not found: PUBLIC.CLICK
17:28:19 ERROR SchemaExport:425 - HHH000389: Unsuccessful: alter table click drop constraint FK5A5C5885AC11C60
17:28:19 ERROR SchemaExport:426 - user lacks privilege or object not found: PUBLIC.CLICK
17:28:19 ERROR SchemaExport:425 - HHH000389: Unsuccessful: alter table click drop constraint FK5A5C58841979673
17:28:19 ERROR SchemaExport:426 - user lacks privilege or object not found: PUBLIC.CLICK
17:28:19 ERROR SchemaExport:425 - HHH000389: Unsuccessful: alter table click drop constraint FK5A5C588430DFF29
17:28:19 ERROR SchemaExport:426 - user lacks privilege or object not found: PUBLIC.CLICK
17:28:19 ERROR SchemaExport:425 - HHH000389: Unsuccessful: alter table click drop constraint FK5A5C588B6909BE1
17:28:19 ERROR SchemaExport:426 - user lacks privilege or object not found: PUBLIC.CLICK
17:28:19 ERROR SchemaExport:425 - HHH000389: Unsuccessful: alter table comment drop constraint FK38A5EE5FCBB8DB5

2 个答案:

答案 0 :(得分:0)

您使用的是哪个版本的HsqlDB?我使用2.2.9与hibernate 4.1.3。我看到没有错误..你可以尝试这个版本,用户SA。

或者您可以在桌面及其使用的序列上尝试为PUBLIC授予权限

答案 1 :(得分:-1)

只是不要使用2.2.x系列的hsqldb。 2.0.0很好。