#107 Improve Repository example's JavaDoc

This commit is contained in:
Ilkka Seppala 2015-08-21 22:49:53 +03:00
parent 4d08d16bb1
commit 57a271d4fe
2 changed files with 12 additions and 3 deletions

View File

@ -13,14 +13,18 @@ import org.springframework.context.support.ClassPathXmlApplicationContext;
* 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
* minimize duplicate query logic.
*
* In this example we utilize Spring Data to automatically generate a repository for us from the Person
* domain object. Using the PersonDao we perform CRUD operations on the entity. Underneath we have
* <p>
* In this example we utilize Spring Data to automatically generate a repository for us from the {@link Person}
* 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.
*
*/
public class App {
/**
* Program entry point
* @param args command line args
*/
public static void main(String[] args) {
ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(
"applicationContext.xml");

View File

@ -4,6 +4,11 @@ import org.junit.Test;
import com.iluwatar.repository.App;
/**
*
* Application test
*
*/
public class AppTest {
@Test