README updates.
This commit is contained in:
@@ -70,7 +70,6 @@ and there is a placeholder interface called MongoRepository that will in future
|
||||
|
||||
public interface MongoRepository<T, ID extends Serializable> extends
|
||||
Repository<T, ID> {
|
||||
|
||||
}
|
||||
|
||||
You can use the provided implementation class SimpleMongoRepository for basic data access. You can also extend the MongoRepository interface and supply your own finder methods that follow simple naming conventions so they can be converted into queries. For example, given a Person class with first and last name properties
|
||||
@@ -79,7 +78,6 @@ public interface PersonRepository extends MongoRepository<Person, Long> {
|
||||
|
||||
List<Person> findByLastname(String lastname);
|
||||
|
||||
|
||||
List<Person> findByFirstnameLike(String firstname);
|
||||
}
|
||||
|
||||
@@ -110,7 +108,6 @@ public class MyService {
|
||||
PersonRepository repository;
|
||||
|
||||
|
||||
@Test
|
||||
public void doWork() {
|
||||
|
||||
repository.deleteAll();
|
||||
|
||||
Reference in New Issue
Block a user