Skip to content

Commit 4cf3353

Browse files
committed
Improve Tutorial in Readme.md
1 parent 1c0938e commit 4cf3353

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public class Reservation {
9191

9292
### Create a DAO interface
9393

94-
Then, create the following DAO interface. We will add search and insert method.
94+
Then, create the following DAO interface. We will add select and insert method.
9595

9696
``` java
9797
package com.example;
@@ -119,7 +119,7 @@ public interface ReservationDao {
119119

120120
### Generate the DAO imlementation class
121121

122-
After create a DAO interface, build by IDE or Maven, then the implementation class will be generated. However, update methods need the corresponding SQL files **at the compile time**. Unless SQL files exist, compilation will fail.
122+
After create a DAO interface, build by IDE or Maven, then the implementation class will be generated. However, select methods need the corresponding SQL files **at the compile time**. Unless SQL files exist, compilation will fail.
123123
Usually, SQL corresponding to the method will be written in `src/main/resources/META-INF/(FQCN)/(class name)/(method name).sql`. In this case, it's `src/main/resources/META-INF/com/example/ReservationDao/selectAll.sql`.
124124

125125
<img width="80%" src="https://qiita-image-store.s3.amazonaws.com/0/1852/bc75a9c8-fdb4-aafc-e5a5-0921575b556d.png" />

0 commit comments

Comments
 (0)