Package dev.daymor.sakuraboot
Interface SuperRepository<E extends DataPresentation<I>,I extends Comparable<? super I> & Serializable>
- Type Parameters:
E
- The entity type extendingDataPresentation
.I
- The ID of type Comparable and Serializable.
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<E,
,I> org.springframework.data.jpa.repository.JpaRepository<E,
,I> org.springframework.data.repository.ListCrudRepository<E,
,I> org.springframework.data.repository.ListPagingAndSortingRepository<E,
,I> org.springframework.data.repository.PagingAndSortingRepository<E,
,I> org.springframework.data.repository.query.QueryByExampleExecutor<E>
,org.springframework.data.repository.Repository<E,
I>
@NoRepositoryBean
public interface SuperRepository<E extends DataPresentation<I>,I extends Comparable<? super I> & Serializable>
extends org.springframework.data.jpa.repository.JpaRepository<E,I>
The base repository interface.
Example:
To create a repository for your DataPresentation
that inherits from
SuperRepository
, follow these steps:
public interface YourEntityRepository extends SuperRepository<YourEntity, YourIdType> {}
- Since:
- 0.1.0
- See Also:
-
Method Summary
Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, save
Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository
deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlush
Methods inherited from interface org.springframework.data.repository.ListCrudRepository
findAll, findAllById, saveAll
Methods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository
findAll
Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository
findAll
Methods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor
count, exists, findAll, findBy, findOne