Hi,
I have a finder I named findAll as in:
But it is not used when running the integration test.
Instead, it is the findAll of the SimpleJpaRepository that is being injected, and not mine.
Here is how my repository is injected in the test context:
If I rename my finder from findAll to findAllPlease then it is called fine and the integration test passes.
Is there a way to have the framework call my findAll finder ?
I stumbled on this issue in the context of what I thought was another one:
http://forum.springsource.org/showth...d=1#post454111
I have a finder I named findAll as in:
Code:
@Query("SELECT es FROM ElearningSubscription es, UserAccount ua WHERE es.userAccount.id = ua.id ORDER BY ua.firstname, ua.lastname, es.subscriptionDate DESC")
public Page<ElearningSubscription> findAll(Pageable page);
Instead, it is the findAll of the SimpleJpaRepository that is being injected, and not mine.
Here is how my repository is injected in the test context:
Code:
@Autowired
ElearningSubscriptionRepository elearningSubscriptionRepository;
Is there a way to have the framework call my findAll finder ?
I stumbled on this issue in the context of what I thought was another one:
http://forum.springsource.org/showth...d=1#post454111