1,嵌套類查詢spa
List<Person> findByAddress_ZipCode(ZipCode zipCode);
ZipCode是Address屬性的內部屬性。code
2,jpa in 查詢對象
findByAgeIn(Collection<Age> ages)
3,jpa查詢整個對象的數據blog
@Query("select u from User u where u.emailAddress = ?1")
User findByEmailAddress(String emailAddress);
這裏不能使用select * from 查詢。ip