Updated reference documentation regarding repository declaration.

Polished Javadoc of Repository to mention possibility of selectively exposing CRUD methods.
This commit is contained in:
Oliver Gierke
2011-05-24 09:53:48 +02:00
parent dab13128f4
commit 0ea1921a96
2 changed files with 80 additions and 36 deletions

View File

@@ -3,7 +3,16 @@ package org.springframework.data.repository;
import java.io.Serializable;
/**
*
* Central repository marker interface. Captures the domain type to manage as well as the domain type's id type. General
* purpose is to hold type information as well as being able to discover interfaces that extend this one during
* classpath scanning for easy Spring bean creation.
* <p>
* Domain repositories extending this interface can selectively expose CRUD methods by simply declaring methods of the
* same signature as those declared in {@link CrudRepository}.
*
* @see CrudRepository
* @param <T> the domain type the repository manages
* @param <ID> the type of the id of the entity the repository manages
* @author Oliver Gierke
*/
public interface Repository<T, ID extends Serializable> {