DATACMNS-754 - Fixed code sample in repositories reference documentation.

PersonRepository example now shows Person persisted instead of User instances.

Original pull request: #140.
This commit is contained in:
Martin Grigorov
2015-08-17 17:47:53 +02:00
committed by Oliver Gierke
parent bbfd6266ae
commit f47f65279f

View File

@@ -107,14 +107,14 @@ Standard CRUD functionality repositories usually have queries on the underlying
+
[source, java]
----
interface PersonRepository extends Repository<User, Long> { … }
interface PersonRepository extends Repository<Person, Long> { … }
----
. Declare query methods on the interface.
+
[source, java]
----
interface PersonRepository extends Repository<User, Long> {
interface PersonRepository extends Repository<Person, Long> {
List<Person> findByLastname(String lastname);
}
----