E - generic type of the managed entity. Typically implementing
PersistenceEntity.ID - generic type of the primary key
of the entity.public interface GenericRepository<E,ID extends Serializable> extends org.springframework.data.jpa.repository.JpaRepository<E,ID>, QueryDslSupport<E>, FeatureForceIncrementModificationCounter<E>
JpaRepository with QueryDslSupport as well as typical devon4j standard operations. It is recommended
to use DefaultRepository instead.| Modifier and Type | Method and Description |
|---|---|
default long |
deleteByIds(Collection<ID> ids) |
default E |
find(ID id) |
Class<E> |
getEntityClass() |
deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getOne, saveAll, saveAndFlushfindAllcount, delete, deleteAll, deleteAll, deleteById, existsById, findById, savecount, exists, findAll, findOnenewDslAlias, newDslDeleteClause, newDslDeleteClause, newDslQuery, newDslQueryforceIncrementModificationCounterdefault E find(ID id)
id - the primary key. May not be
null.null.CrudRepository.findById(Object)@Modifying default long deleteByIds(Collection<ID> ids)
ids - the Collection of IDs to
delete.Copyright © 2014–2019 devon4j-Team. All rights reserved.