Browse Source

README updates.

pull/1/head
Mark Pollack 15 years ago
parent
commit
6858f8c609
  1. 22
      README.md

22
README.md

@ -45,26 +45,26 @@ Future plans are to support optional logging and/or exception throwing based on @@ -45,26 +45,26 @@ Future plans are to support optional logging and/or exception throwing based on
* To simplify the creation of Data Repositories a generic Repository interface and base class is provided. Furthermore, Spring will automatically create a Repository implementation for you that add implementations of finder methods you specify on an interface. For example the Repository interface is
public interface Repository<T, ID extends Serializable> {
public interface Repository<T, ID extends Serializable> {
T save(T entity);
T save(T entity);
List<T> save(Iterable<? extends T> entities);
List<T> save(Iterable<? extends T> entities);
T findById(ID id);
T findById(ID id);
boolean exists(ID id);
boolean exists(ID id);
List<T> findAll();
List<T> findAll();
Long count();
Long count();
void delete(T entity);
void delete(T entity);
void delete(Iterable<? extends T> entities);
void delete(Iterable<? extends T> entities);
void deleteAll();
}
void deleteAll();
}
and there is a placeholder interface called MongoRepository that will in future add more Mongo specific methods.

Loading…
Cancel
Save