Interface GenericRepository<E,ID extends Serializable>
-
- Type Parameters:
E- generic type of the managedentity. Typically implementingPersistenceEntity.ID- generic type of theprimary keyof the entity.
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<E,ID>,FeatureForceIncrementModificationCounter<E>,org.springframework.data.jpa.repository.JpaRepository<E,ID>,org.springframework.data.repository.PagingAndSortingRepository<E,ID>,org.springframework.data.repository.query.QueryByExampleExecutor<E>,QueryDslSupport<E>,org.springframework.data.repository.Repository<E,ID>
- All Known Subinterfaces:
DefaultRepository<E>,DefaultRevisionedRepository<E>,GenericRevisionedRepository<E,ID>
- All Known Implementing Classes:
GenericRepositoryImpl,GenericRevisionedRepositoryImpl
public interface GenericRepository<E,ID extends Serializable> extends org.springframework.data.jpa.repository.JpaRepository<E,ID>, QueryDslSupport<E>, FeatureForceIncrementModificationCounter<E>
JpaRepositorywithQueryDslSupportas well as typical devon4j standard operations. It is recommended to useDefaultRepositoryinstead.- Since:
- 3.0.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default longdeleteByIds(Collection<ID> ids)default Efind(ID id)Class<E>getEntityClass()-
Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteById, existsById, findById, save
-
Methods inherited from interface com.devonfw.module.jpa.dataaccess.api.feature.FeatureForceIncrementModificationCounter
forceIncrementModificationCounter
-
Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository
deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getOne, saveAll, saveAndFlush
-
Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository
findAll
-
Methods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor
count, exists, findAll, findOne
-
Methods inherited from interface com.devonfw.module.jpa.dataaccess.api.data.QueryDslSupport
newDslAlias, newDslDeleteClause, newDslDeleteClause, newDslQuery, newDslQuery
-
-
-
-
Method Detail
-
find
default E find(ID id)
- Parameters:
id- theprimary key. May not benull.- Returns:
- the requested entity. Never
null. - See Also:
CrudRepository.findById(Object)
-
deleteByIds
@Modifying default long deleteByIds(Collection<ID> ids)
- Parameters:
ids- theCollectionofIDsto delete.- Returns:
- the number of entities that have actually been deleted.
-
-