@Query("select u from User u where u.firstname = :#{#customer.firstname}")
List<User> findUsersByCustomersFirstname(@Param("customer") Customer customer);
@Query("select u from User u where u.firstname = :#{#customer.firstname}")
List<User> findUsersByCustomersFirstname(@Param("customer") Customer customer);
本文标题:jpa @Query使用spring el表达式做查询
本文链接:https://www.haomeiwen.com/subject/brpcfftx.html
网友评论