We are using latest Spring Data JDBC milestone (1.1.0.M3) together with SQL Server.
Updating referenced aggregates (not the aggregate root itself) - fails with:
com.microsoft.sqlserver.jdbc.SQLServerException: Cannot insert explicit value for identity column in table 'mytable' when IDENTITY_INSERT i set to OFF
Updating the aggregate root itself works OK.
Any ideas or suggestions? We are locked to using SQL Server. Note that the above works with H2 in-mem DB.