学习是最好的投资!
Similar to this
@Query("select h from Hotel h where h.city = ?1") List<Hotel> queryWorkFormList(City city);
Example given by Spring:
@Query("select u from User u where u.firstname = :#{#customer.firstname}") List<User> findUsersByCustomersFirstname(@Param("customer") Customer customer);
Similar to this
Example given by Spring: