Created
April 11, 2020 15:03
-
-
Save ntub46010/7c5b1b4a366ba34695991b010e3caf6b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 找出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