Clear the BytecodeProvider caches both after SessionFactory creation and stop

Description

In many cases the ByteCodeProvider cache is no longer needed after boot; currently we clear them on SessionFactory close, but we should do it also at end of bootstrap.

Environment

None

Assignee

Sanne Grinovero

Reporter

Sanne Grinovero

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Priority

Major
Configure