#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
|
||||
* 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");
|
||||
|
@ -4,6 +4,11 @@ import org.junit.Test;
|
||||
|
||||
import com.iluwatar.repository.App;
|
||||
|
||||
/**
|
||||
*
|
||||
* Application test
|
||||
*
|
||||
*/
|
||||
public class AppTest {
|
||||
|
||||
@Test
|
||||
|
Loading…
x
Reference in New Issue
Block a user