Skip to content

Commit 13a0e3a

Browse files
authored
Clean README.md [skip ci] (#566)
1 parent 0c8c768 commit 13a0e3a

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -62,18 +62,7 @@ val list = entityql
6262
.fetch()
6363
```
6464

65-
## two-way SQL
66-
67-
DAO interface written in Java 8:
68-
69-
```java
70-
@Dao
71-
public interface EmployeeDao {
72-
73-
@Select
74-
List<Employee> selectByExample(Employee e);
75-
}
76-
```
65+
### two-way SQL
7766

7867
selectByExample.sql:
7968

@@ -86,7 +75,18 @@ select * from EMPLOYEE where
8675
/*%end*/
8776
```
8877

89-
## Other Examples
78+
Doma maps the above SQL template to the following DAO interface:
79+
80+
```java
81+
@Dao
82+
public interface EmployeeDao {
83+
84+
@Select
85+
List<Employee> selectByExample(Employee e);
86+
}
87+
```
88+
89+
### Other Examples
9090

9191
Try following getting started examples:
9292
- [Get started! (IntelliJ IDEA)](https://doma.readthedocs.io/en/latest/getting-started-idea/)

0 commit comments

Comments
 (0)