Wrong hibernate dialect for MSSQL 2014

后端 未结 4 1671
悲哀的现实
悲哀的现实 2021-01-05 15:23

I have a problem with inserting entities, that use sequences, to a MSSQL 2014 database. I use hibernate that is shipped with Wildfly 10 CR4 (but in CR1 and CR2 I got the sam

4条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-05 15:41

    I think that your problem could be related to this known issue HHH-9570. (The link actually contains my pull request to my proposed workaround)

    Basically, as it happened before with SQL Server 2012, the StandardDialectResolver of Hibernate does not recognise SQL Server 2014 ([Major version 12]) and then the default dialect SQLServerDialect is returned, which is the one for SQL Server 2000

提交回复
热议问题