阿神2017-04-18 10:15:13
類似
@Query("select h from Hotel h where h.city = ?1")
List<Hotel> queryWorkFormList(City city);
ringa_lee2017-04-18 10:15:13
Spring給的例子:
@Query("select u from User u where u.firstname = :#{#customer.firstname}")
List<User> findUsersByCustomersFirstname(@Param("customer") Customer customer);