Updated reference documentation regarding repository declaration.
Polished Javadoc of Repository to mention possibility of selectively exposing CRUD methods.
This commit is contained in:
@@ -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> {
|
||||
|
||||
Reference in New Issue
Block a user