When upgrading to v5.2 from v4, Hibernate doesn't seem to approve of the
numeric type for identity fields any longer.
Code:
Schema-validation: wrong column type encountered in column [ID] in table [dbo.ACCOUNT]; found [numeric (Types#NUMERIC)], but expecting [bigint (Types#BIGINT)]
The database is a SQL Server 2008 where tables are generated as:
Code:
CREATE TABLE [dbo].[ACCOUNT](
[ID] [numeric](19, 0) IDENTITY(1,1) NOT NULL,
...
);
Is there a way to resolve this without changing the schema or changing the annotations in a couple of hundred java files?
Additional properties used are:
Code:
spring.datasource.url=jdbc:jtds:sqlserver://localhost:1433/stagingdb
spring.jpa.hibernate.ddl-auto=validate
spring.jpa.database-platform=org.hibernate.dialect.SQLServer2008Dialect
spring.jpa.hibernate.naming.physical-strategy=org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
spring.jpa.properties.hibernate.default_schema=dbo
The JDBC driver used is jTDS v1.3.1, I tried with Microsofts own driver without any luck.
Thank you.