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