Skip to content

Instantly share code, notes, and snippets.

@ntub46010
Created April 11, 2020 15:03
Show Gist options
  • Save ntub46010/7c5b1b4a366ba34695991b010e3caf6b to your computer and use it in GitHub Desktop.
Save ntub46010/7c5b1b4a366ba34695991b010e3caf6b to your computer and use it in GitHub Desktop.
// 找出name欄位值有包含參數的所有文件,且不分大小寫
List<Product> findByNameLikeIgnoreCase(String name);
// 找出id欄位值有包含在參數之中的所有文件
List<Product> findByIdIn(List<String> ids);
// 是否有文件的email欄位值等於參數
boolean existsByEmail(String email);
// 找出username與password欄位值皆符合參數的一筆文件
Optional<User> findByUsernameAndPassword(String email, String pwd);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment