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
{{ message }}
Repository navigation
Cannot save entity only have id and collections [DATAJDBC-557] #777
Repository.save() generates bad SQL and throws exception.
On insert:
org.springframework.jdbc.BadSqlGrammarException: PreparedStatementCallback; bad SQL grammar [INSERT INTO "DUMMY_ENTITY" VALUES ()]; nested exception is java.sql.SQLSyntaxErrorException: unexpected token: )
and on update:
org.springframework.jdbc.BadSqlGrammarException: PreparedStatementCallback; bad SQL grammar [UPDATE "DUMMY_ENTITY" WHERE "DUMMY_ENTITY"."ID" = ?]; nested exception is java.sql.SQLSyntaxErrorException: unexpected token: WHERE required: SET
I polished and merged it.
It turned out that your dependency problems you encountered from dependencies going in the wrong direction in the first place. Fixing those requires breaking changes and therefore will happen for 3.0.
Activity
Support inserts for id only entities.
Polishing
Fixed dependency issues between sql.render and dialect.
Polishing.
Disable broken part of DependencyTests.
schauder commentedon Dec 1, 2021
Thanks for your work.
I polished and merged it.
It turned out that your dependency problems you encountered from dependencies going in the wrong direction in the first place. Fixing those requires breaking changes and therefore will happen for 3.0.