반응형
Using Like: select ... like :username
List<User> findByUsernameLike(String username);
StartingWith: select ... like %:username
List<User> findByUsernameStartingWith(String username);
EndingWith: select ... like :username%
List<User> findByUsernameEndingWith(String username);
Containing: select ... like %:username%
List<User> findByUsernameContaining(String username);
반응형