Jakarta Data repository method binding incorrect number of params
Description
Entity:
ID Class:
Repository
Application
Trace
Error Analysis:
Hibernate attempted first to execute an UPDATE statement which contained a WHERE changeCount=? clause to try to update the previous version
When no record was found Hibernate attempted to execute an INSERT statement
When binding parameters the same set of parameters were used but that set contained the extra param to update the previous version which caused the exception.
Entity:
ID Class:
Repository
Application
Trace
Error Analysis:
Hibernate attempted first to execute an UPDATE statement which contained a
WHERE changeCount=?
clause to try to update the previous versionWhen no record was found Hibernate attempted to execute an INSERT statement
When binding parameters the same set of parameters were used but that set contained the extra param to update the previous version which caused the exception.