You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This works properly if we define a method that fetches that projection in repository interface.
However, this does not appear to work if we use this method like this findBy(mySpecification, q -> q.as(MyProjection.class)). In that case I get
No bean resolver registered in the context to resolve access to bean 'myBean']
This appears to be the case beacause SpelAwareProxyProjectionFactory created here never has its BeanFactory set.
I'm wondering if this is expected behavior and if it is could support for resolving beans with FluentQuery be added in the future?
The text was updated successfully, but these errors were encountered:
Hello,
I'm currently using spring-data-jpa 3.0.5
Documentation mentions that we can use beans inside open projections like this
This works properly if we define a method that fetches that projection in repository interface.
However, this does not appear to work if we use this method like this
findBy(mySpecification, q -> q.as(MyProjection.class))
. In that case I getThis appears to be the case beacause
SpelAwareProxyProjectionFactory
created here never has itsBeanFactory
set.I'm wondering if this is expected behavior and if it is could support for resolving beans with FluentQuery be added in the future?
The text was updated successfully, but these errors were encountered: