Skip to content

Commit 91bd753

Browse files
committed
Update springboot-jpa.md
1 parent 309eb69 commit 91bd753

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

docs/basis/springboot-jpa.md

+10-4
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,8 @@ public interface JpaRepository<T, ID> extends PagingAndSortingRepository<T, ID>,
193193

194194
#### 2) 带条件的查询
195195

196+
下面这些方法是我们根据 JPA 提供的语法自定义的,你需要将下面这些方法写到 `PersonRepository` 中。
197+
196198
假如我们想要根据 Name 来查找 Person ,你可以这样:
197199

198200
```java
@@ -319,14 +321,18 @@ public class PersonRepositoryTest {
319321

320322
## 6. 总结
321323

322-
本文主要介绍了:
324+
本文主要介绍了 JPA 的基本用法
323325

324326
1. 使用 JPA 自带的方法进行增删改查以及条件查询。
327+
325328
2. 自定义 SQL 语句进行查询或者更新数据库。
329+
326330
3. 创建异步的方法。
327331

328-
## 代办
332+
333+
334+
在下一篇关于 JPA 的文章中我会介绍到非常重要的两个知识点:
329335

330-
- [ ] 分页
331-
- [ ] 多表联合查询
336+
1. 基本分页功能实现
337+
2. 多表联合查询以及多表联合查询下的分页功能实现。
332338

0 commit comments

Comments
 (0)