For example, I've got such query:
@Query("SELECT u.name FROM User u")
public List<User> findAllUsers();
I know, this is not an optimal way to show all users, but it's just for example, my query is more complex.
I've got such answer: [{"Tom Wally"}]
But I want to get: [{"name":"Tom Wally"}]
How to add column name to custom query?