File tree Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Original file line number Diff line number Diff 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
7867selectByExample.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
9191Try following getting started examples:
9292- [ Get started! (IntelliJ IDEA)] ( https://doma.readthedocs.io/en/latest/getting-started-idea/ )
You can’t perform that action at this time.
0 commit comments