2019独角兽企业重金招聘Python工程师标准>>>
1. //And --- 等价于 SQL 中的 and 关键字
public List<User> findByHeightAndSex(int height,char sex);
2. // Or --- 等价于 SQL 中的 or 关键字
public List<User> findByHeightOrSex(int height,char sex);
3. //Between --- 等价于 SQL 中的 between 关键字
public List<User> findByHeightBetween(int min,int max);
4. //LessThan --- 等价于 SQL 中的 "<"
public List<User> findByHeightLessThan(int max);
5.//GreaterThan --- 等价于 SQL 中的">"
public List<User> findByHeightGreaterThan(int min);
6. //IsNull --- 等价于 SQL 中的 "is null"
public List<User> findByNameIsNull();
7. //IsNotNull --- 等价于 SQL 中的 "is not null"
public List<User> findByNameIsNotNull();
8.//NotNull --- 与 IsNotNull 等价;
public List<User> findByNameNotNull();
9. //Like --- 等价于 SQL 中的 "like",
public List<User> findByNameLike(String name);
10. //NotLike --- 等价于 SQL 中的 "not like"
public List<User> findByNameNotLike(String name);
11. //OrderBy --- 等价于 SQL 中的 "order by",
public List<User>findByNameNotNullOrderByHeightAsc();
12. //Not --- 等价于 SQL 中的 "! ="
public List<User> findByNameNot(String name);
13. //In --- 等价于 SQL 中的 "in"
public List<User> findByNameIn(String name);
14. //NotIn --- 等价于 SQL 中的 "not in"
public List<User> findByNameNotIn(String name);