@ -68,64 +68,61 @@ Future plans are to support optional logging and/or exception throwing based on
@@ -68,64 +68,61 @@ Future plans are to support optional logging and/or exception throwing based on
and there is a placeholder interface called MongoRepository that will in future add more Mongo specific methods.
public interface MongoRepository<T,IDextendsSerializable> extends
public interface MongoRepository<T,IDextendsSerializable> 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
public interface PersonRepository extends MongoRepository<Person,Long> {
public interface PersonRepository extends MongoRepository<Person,Long> {