BeanValidationListener not called for collection updates in ManyToMany relationships

Description

I have a class User mapped with roles like this:

Works as expected for reads and inserts. However, if I try to insert third role into the collection (max size 2) it will persist instead of failing because BeanValidationListener is not bound to CollectionUpdateAction.
for comparison, if I simultaneously change the firstName/lastName, then the EntityUpdateAction is fired instead which has the BeanValidationListener bound and called during its preUpdate call.

If this isn’t a bug, please advise how to achieve BeanValidation triggering also during updates of collection properties.

Environment

None

Assignee

Unassigned

Reporter

Marek Šabo

Fix versions

None

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure