@Query注解的用法(Spring Data JPA)
1. 一个使用@Query注解的简单例子@Query(value = "select name,author,price from Book b where b.price>?1 and b.price<?2")List<Book> findByPriceRange(long price1, long price2); 2. Like表达式@Query(value = ...
转载
2018-03-20 10:49:25 ·
213 阅读 ·
0 评论