public interface DefaultRepository
Repository
.
If no customization is required, DefaultRepository.of(java.lang.Class<E>)
is the easiest way to create
an instance of repository for a given entity type.
Modifier and Type | Method and Description |
---|---|
static <I,E extends Entity<I,?>> |
of(java.lang.Class<E> cls)
Creates default repository for the passed entity class.
|
static <I,E extends Entity<I,?>> Repository<I,E> of(java.lang.Class<E> cls)
Default repositories are useful when no customization (for example, custom routing) is required for managing entities of the passed class.
I
- the type of entity identifiersE
- the type of entitycls
- the class of entities