#107 Improve Repository example's JavaDoc
This commit is contained in:
parent
4d08d16bb1
commit
57a271d4fe
@ -13,14 +13,18 @@ import org.springframework.context.support.ClassPathXmlApplicationContext;
|
|||||||
* query construction code is concentrated. This becomes more important when there are a large
|
* query construction code is concentrated. This becomes more important when there are a large
|
||||||
* number of domain classes or heavy querying. In these cases particularly, adding this layer helps
|
* number of domain classes or heavy querying. In these cases particularly, adding this layer helps
|
||||||
* minimize duplicate query logic.
|
* minimize duplicate query logic.
|
||||||
*
|
* <p>
|
||||||
* In this example we utilize Spring Data to automatically generate a repository for us from the Person
|
* In this example we utilize Spring Data to automatically generate a repository for us from the {@link Person}
|
||||||
* domain object. Using the PersonDao we perform CRUD operations on the entity. Underneath we have
|
* domain object. Using the {@link PersonRepository} we perform CRUD operations on the entity. Underneath we have
|
||||||
* configured in-memory H2 database for which schema is created and dropped on each run.
|
* configured in-memory H2 database for which schema is created and dropped on each run.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class App {
|
public class App {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Program entry point
|
||||||
|
* @param args command line args
|
||||||
|
*/
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(
|
ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(
|
||||||
"applicationContext.xml");
|
"applicationContext.xml");
|
||||||
|
@ -4,6 +4,11 @@ import org.junit.Test;
|
|||||||
|
|
||||||
import com.iluwatar.repository.App;
|
import com.iluwatar.repository.App;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* Application test
|
||||||
|
*
|
||||||
|
*/
|
||||||
public class AppTest {
|
public class AppTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
Loading…
x
Reference in New Issue
Block a user