Auto evict collection cache not work when owner side update parent to null

Description

public class Company { @OneToMany(mappedBy = "company") @Cache(usage = CacheConcurrencyStrategy.READ_WRITE) private List<User> users = new ArrayList<User>();
public class User { @ManyToOne(fetch = FetchType.LAZY) private Company company;
// Test case // assume user has company set, company.getUsers().size() == 1 company.getUsers().get(0).setCompany(null); commit; // company.getUsers().size() should equals to 0

Activity

Show:

Vlad Mihalcea March 21, 2016 at 2:23 PM

Apply the PR on master.

Fixed

Details

Assignee

Reporter

Labels

Original estimate

Time tracking

No time logged0.33h remaining

Components

Fix versions

Priority

Created March 19, 2016 at 3:09 PM
Updated August 12, 2016 at 9:14 PM
Resolved March 21, 2016 at 2:23 PM