DB/MongoDB
MongoDB repository
잔망루피
2023. 2. 23. 23:37
Keyword | 예시 |
Greater Than | findByAgeGreaterThan(int age) |
Less Than | findByAgeLessThan(int age) |
Between | findByAgeBetween(int from, int to) |
IsNotNull, NotNull | findByFirstnameNotNull() |
IsNull, Null | findByFirstnameNull() |
Like | findByFirstnameLike(String name) |
Regex | findByFirstnameRegex(String firstname) |
(No keyword) | findByFirstname(String name) |
Not | findByFirstnameNot(String name) |
Near | findByLocationNear(Point point) |
Within | findByLocationWithin(Circle circle) |
Within | findByLocationWithin(Box box) |
IsTrue, True | findByActiveIsTrue() |
IsFalse, False | findByActiveIsFalse() |
Exists | findByLocationExists(boolean exists) |
참고 👇
https://docs.spring.io/spring-data/mongodb/docs/1.2.0.RELEASE/reference/html/mongo.repositories.html
반응형