Interface Data.GenericRepository<E,ID>
- Type Parameters:
E- the entity typeID- the identifier type
- All Known Subinterfaces:
Data.BasicRepository<E,ID>, Data.CrudRepository<E, ID>, Data.PageableRepository<E, ID>
- Enclosing class:
Data
public static interface Data.GenericRepository<E,ID>
Marker interface for a data repository that declares an entity type and its identifier type.
Extend this interface to identify the entity and identifier types of a repository. Annotate the repository
interface with Data.Repository to have a persistence provider generate its implementation. A persistence
provider may also support repositories that do not declare these types at the repository level.