I am trying to use Spring JPA\'s projection to filter out unnecessary data from query result. However, I have multiple projections that will need to be used on the same inte
Just add something between get (or e.g. find) and By starting with an upper case character. It is ignored in the query generation.
public interface UserRepository extends CrudRepository {
AuthenticateProjection getByUsername(String username);
UserDetailsProjection getAnotherByUsername(String username);
}