我收到错误INFO: HHH000262: Table not found: hibernate_sequence
这是奇怪的,因为该表存在于我的数据库中,可以从visual studio中看到。但它还抱怨吗?可能是什么问题。
我使用org.hibernate.dialect.SQLServer2008Dialect
作为
我的方言。
驱动程序com.microsoft.sqlserver.jdbc.SQLServerDriver
当我设置<property name="hbm2ddl.auto">create</property>
时,我会收到有关hibernate_sequence的其他一些错误:
dec. 02, 2015 6:04:51 PM org.hibernate.tool.hbm2ddl.SchemaExport perform
ERROR: HHH000389: Unsuccessful: insert into hibernate_sequence values ( 1 )
Hibernate: insert into hibernate_sequence values ( 1 )
dec. 02, 2015 6:04:51 PM org.hibernate.tool.hbm2ddl.SchemaExport perform
ERROR: Tables without a clustered index are not supported in this version of SQL Server. Please create a clustered index and try again.
dec. 02, 2015 6:04:51 PM org.hibernate.tool.hbm2ddl.SchemaExport perform
ERROR: HHH000389: Unsuccessful: insert into hibernate_sequence values ( 1 )
dec. 02, 2015 6:04:51 PM org.hibernate.tool.hbm2ddl.SchemaExport perform
ERROR: Tables without a clustered index are not supported in this version of SQL Server. Please create a clustered index and try again.
Hibernate: insert into hibernate_sequence values ( 1 )
dec. 02, 2015 6:04:51 PM org.hibernate.tool.hbm2ddl.SchemaExport perform
ERROR: HHH000389: Unsuccessful: insert into hibernate_sequence values ( 1 )
dec. 02, 2015 6:04:51 PM org.hibernate.tool.hbm2ddl.SchemaExport perform
ERROR: Tables without a clustered index are not supported in this version of SQL Server. Please create a clustered index and try again.
Hibernate: insert into hibernate_sequence values ( 1 )
dec. 02, 2015 6:04:51 PM org.hibernate.tool.hbm2ddl.SchemaExport perform
ERROR: HHH000389: Unsuccessful: insert into hibernate_sequence values ( 1 )
dec. 02, 2015 6:04:51 PM org.hibernate.tool.hbm2ddl.SchemaExport perform
ERROR: Tables without a clustered index are not supported in this version of SQL Server. Please create a clustered index and try again.
dec. 02, 2015 6:04:51 PM org.hibernate.tool.hbm2ddl.SchemaExport execute
我真的不知道从这里开始关于这个问题。我一直在寻找很多,无法找到任何或正确理解问题和解决方案。
任何帮助都很受欢迎。
答案 0 :(得分:0)
它是黑暗中的第一枪(进行更多研究)确保您在表名前使用架构名称
select * from youruser.hibernate_sequence