Open
Description
Hello,
I'm currently using spring-data-jpa 3.0.5
Documentation mentions that we can use beans inside open projections like this
@Value("#{@myBean.getFullName(target)}")
String getFullName();
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?