Hello,

As I understood this documentation, this method: User findByUsernameAndPassword(String username, String password); should perform like: where x.lastname = ?1 and x.firstname = ?2 but it's performing actually like: where UPPER(x.firstame) = UPPER(?1)

Comment From: Retewe

Sorry, the problem was that String comparisons in MYSQL are case insensitive by default.

All is ok.