Unable to locate parameter for RESTRICT - DELETE error when removing entity with RowId

Description

We recive the folowing error when we are trying to delete the entity with the @RowID:

Test cases with reprodusing are attached.

Attachments

1

Activity

Show:

Marco BelladelliSeptember 8, 2023 at 1:05 PM

It appears that in previous versions of Hibernate we were only using the ROWID value when updating an entity. In 6, we were including the ROWID column in the delete clause but not correctly binding the parameter value.

We should make this behavior consistent, using ROWID (when available, i.e. when the entity was read from the database) for both update and delete restrictions.

Fixed

Details

Assignee

Reporter

Worked in

Components

Sprint

Fix versions

Affects versions

Priority

Created September 5, 2023 at 3:28 PM
Updated October 31, 2023 at 10:45 AM
Resolved September 15, 2023 at 10:04 AM