Resolution: Won't Fix
jdk 7 update 7
We have been following the "Adding custom behaviour to all repositories" reference
and now have a Custom Repository Interface. After a few tweaks the implementation is working and we can use this in our web application as expected. But the tooling in STS claims that there is an error.
"Invalid derived query! No property save found for type java.lang.Object CacheAwareRepository.java"
affected are the following three methods only:
- T saveAndFlush(final T entity);
- void deleteAllInBatch();
- void deleteInBatch(final Iterable<T> entities);
Please see the attached screenshot
With STS 3.1.0.Release this error message was also present but only visible in the editor window, not in the package explorer, so we simply ignored it.
With todays update to STS 3.2.0.M2 it also pops up in the package explorer view and in the marker views.
There are two things here which are odd:
1.) Our custom implementation is not even in the same package as the real repositories.
2.) Our custom implementation is using the (useful/useless?) @NoRepositoryBean annotation which we thought would help tooling to suppress to treat it like a special Spring Data JPA interface.