2024-06-12

This commit is contained in:
2024-06-12 13:11:58 +09:00
parent d2bb77ca33
commit a75a1dbd0f
31 changed files with 263 additions and 7 deletions

View File

@@ -0,0 +1,33 @@
# Repository
JpaRepository > PagingAndSortingRepository > CrudRepository > Repository
## JpaRepository
```java
@Repository
public interface MyRepository extends JpaRepository<MyEntity, Long> {
}
```
## 메서드 이름 규칙
* findBy, readBy, getBy, queryBu, searchBy, streamBy
* and, or
* isLike, isNotLike
* is, isNot
* startsWith, isStartingWith
* endsWith, isEndingWith
* contains, isContaining
* isNull, isNotNull
* isTrue, isFalse
* before, after
* isLessThan, isGreaterThan
* isBetween
* orderBy
* first, top
* countBy
* existsBy
* deleteBy, removeBy