spring-data-commons icon indicating copy to clipboard operation
spring-data-commons copied to clipboard

Investigate callback blacklisting for incompatible entity types [DATACMNS-1716]

Open spring-projects-issues opened this issue 5 years ago • 0 comments

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

spring-projects-issues avatar May 06 '20 10:05 spring-projects-issues