You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to insert values in a mssql server table the setting of IDs (defined as identity and primary key) with explicit values is not supported.
Here is the exception:
Causedby: org.springframework.dao.DataIntegrityViolationException: PreparedStatementCallback; SQL [INSERTINTOmanual (content, lego_set, id) VALUES (?, ?, ?)]; Cannotinsertexplicitvalueforidentitycolumnintable'MANUAL' when IDENTITY_INSERTissettoOFF.; nestedexceptioniscom.microsoft.sqlserver.jdbc.SQLServerException: Cannotinsertexplicitvalueforidentitycolumnintable'MANUAL' when IDENTITY_INSERTissettoOFF.
The suggestion is to build a vendor specific database dialect which excludes the id generation on mssql server.