Issues

Select view

Select search mode

 
21 of 21

2nd level collection cache has not been invalidated after hql delete queries

Description

When we delete oneToMany collections with hql and then remove with hibernate session it fails with below error.

Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1; statement executed: delete from Y where id=?

Consider one to may relations for X → Y.

 

Below test fails with same error in 5.4.18 hibernate version. If I remove 2nd level collections cache for Y in X.java then same test passes.

Details

Assignee

Reporter

Worked in

Components

Affects versions

Priority

Created May 4, 2022 at 6:18 AM
Updated May 5, 2022 at 5:59 AM

Activity

Show:

balram patel May 4, 2022 at 9:55 AM

Its failing after this change

balram patel May 4, 2022 at 9:30 AM

Test is passing in 5.4.10 and failing since 5.4.11.

Loading...