ClearListener: allow to listen for clear events

Description

It would be useful to be able to register a ClearListener so get notifications on users invoking Session#clear and EntityManager#clear.

Environment

None

Assignee

Steve Ebersole

Reporter

Sanne Grinovero

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

Yes, likely

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Priority

Major
Configure