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.

Activity

Details

Assignee

Reporter

Affects versions

Priority

Created June 7, 2024 at 10:01 PM
Updated November 17, 2024 at 8:10 AM