Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 28645f1

Browse files
[new] test
1 parent d3d41de commit 28645f1

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

‎spring-data-jdbc-mybatis-demo/src/main/resources/sql/UserInfoRepository.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ select [@id column] from user_info <where>
1212
[@@and user_code in userCodes]</where>
1313
```
1414

15+
1516
```
1617
-- findUserNameByCode
1718
select user_name from user_info where user_code = #{userCode} [@id isDelete]

‎spring-data-jdbc-mybatis-demo/src/test/java/com/vonchange/nine/demo/dao/UserInfoMethodDaoTest.java‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,14 @@ void findOneByExample() {
6464
log.info("\nuserInfo {}", JsonUtil.toJson(u));
6565
});
6666
}
67+
68+
@Test
69+
void findAll() {
70+
userInfoMethodDao
71+
.findAll().forEach(u->{
72+
log.info("\nuserInfo {}", JsonUtil.toJson(u));
73+
});
74+
}
6775
@Test
6876
void countByExample() {
6977
Long num = userInfoMethodDao

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /