spring-data-commons
spring-data-commons copied to clipboard
Investigate callback blacklisting for incompatible entity types [DATACMNS-1716]
Mark Paluch opened DATACMNS-1716 and commented
Entity callbacks defined as lambda expression do not expose any generic typing that could be used for filtering therefore EntityCallbacks attempts invoking a callback and backs off if the call fails with a ClassCastException. Retrievals of multiple objects (e.g. findAll) may lead to performance degradation as each lambda-callback may fail for incompatible types.
We should investigate whether we can blacklist callbacks that are known to reject a particular entity type to bypass the invocation attempt
No further details from DATACMNS-1716