X Tutup
Skip to content

Commit 57a271d

Browse files
committed
iluwatar#107 Improve Repository example's JavaDoc
1 parent 4d08d16 commit 57a271d

File tree

2 files changed

+12
-3
lines changed
  • repository/src

2 files changed

+12
-3
lines changed

repository/src/main/java/com/iluwatar/repository/App.java

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,18 @@
1313
* query construction code is concentrated. This becomes more important when there are a large
1414
* number of domain classes or heavy querying. In these cases particularly, adding this layer helps
1515
* minimize duplicate query logic.
16-
*
17-
* In this example we utilize Spring Data to automatically generate a repository for us from the Person
18-
* domain object. Using the PersonDao we perform CRUD operations on the entity. Underneath we have
16+
* <p>
17+
* In this example we utilize Spring Data to automatically generate a repository for us from the {@link Person}
18+
* domain object. Using the {@link PersonRepository} we perform CRUD operations on the entity. Underneath we have
1919
* configured in-memory H2 database for which schema is created and dropped on each run.
2020
*
2121
*/
2222
public class App {
2323

24+
/**
25+
* Program entry point
26+
* @param args command line args
27+
*/
2428
public static void main(String[] args) {
2529
ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(
2630
"applicationContext.xml");

repository/src/test/java/com/iluwatar/repository/AppTest.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44

55
import com.iluwatar.repository.App;
66

7+
/**
8+
*
9+
* Application test
10+
*
11+
*/
712
public class AppTest {
813

914
@Test

0 commit comments

Comments
 (0)
X Tutup