|
|
|
|
@ -383,7 +383,7 @@ List<User> findByLastname(String lastname, Pageable pageable);</programlis
@@ -383,7 +383,7 @@ List<User> findByLastname(String lastname, Pageable pageable);</programlis
|
|
|
|
|
mechanism. Each of those includes a repositories element that allows |
|
|
|
|
you to simply define a base packge Spring shall scan for you.</para> |
|
|
|
|
|
|
|
|
|
<programlisting language="java"><?xml version="1.0" encoding="UTF-8"?> |
|
|
|
|
<programlisting language="xml"><?xml version="1.0" encoding="UTF-8"?> |
|
|
|
|
<beans:beans xmlns:beans="http://www.springframework.org/schema/beans" |
|
|
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
|
|
|
|
xmlns="http://www.springframework.org/schema/data/jpa |
|
|
|
|
@ -453,7 +453,7 @@ List<User> findByLastname(String lastname, Pageable pageable);</programlis
@@ -453,7 +453,7 @@ List<User> findByLastname(String lastname, Pageable pageable);</programlis
|
|
|
|
|
instances to create you can do this with nested <code><repository |
|
|
|
|
/></code> elements.</para> |
|
|
|
|
|
|
|
|
|
<programlisting language="java"><repositories base-package="com.acme.repositories"> |
|
|
|
|
<programlisting language="xml"><repositories base-package="com.acme.repositories"> |
|
|
|
|
<repository id="userRepository" /> |
|
|
|
|
</repositories> |
|
|
|
|
</programlisting> |
|
|
|
|
|