Interface GenericRevisionedRepository<E,ID extends Serializable>
-
- Type Parameters:
E- generic type of the managedentity. Typically implementingRevisionedPersistenceEntity.ID- generic type of theprimary keyof the entity.
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<E,ID>,FeatureForceIncrementModificationCounter<E>,GenericRepository<E,ID>,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:
DefaultRevisionedRepository<E>
- All Known Implementing Classes:
GenericRevisionedRepositoryImpl
public interface GenericRevisionedRepository<E,ID extends Serializable> extends GenericRepository<E,ID>
GenericRepositorywith additional support forAudited- Since:
- 3.0.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Efind(ID id, Number revision)com.devonfw.module.basic.common.api.RevisionMetadatagetLastRevisionHistoryMetadata(ID id)default List<com.devonfw.module.basic.common.api.RevisionMetadata>getRevisionHistoryMetadata(ID id)List<com.devonfw.module.basic.common.api.RevisionMetadata>getRevisionHistoryMetadata(ID id, boolean lazy)-
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 com.devonfw.module.jpa.dataaccess.api.data.GenericRepository
deleteByIds, find, getEntityClass
-
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
E find(ID id, Number revision)
- Parameters:
id- theprimary key.revision- therevisionof the requested entity.- Returns:
- the entity with the given
idandrevision. - See Also:
GenericRepository.find(Serializable),getRevisionHistoryMetadata(Serializable, boolean),RevisionMetadata.getRevision(),RevisionedEntity.getRevision()
-
getRevisionHistoryMetadata
default List<com.devonfw.module.basic.common.api.RevisionMetadata> getRevisionHistoryMetadata(ID id)
-
getRevisionHistoryMetadata
List<com.devonfw.module.basic.common.api.RevisionMetadata> getRevisionHistoryMetadata(ID id, boolean lazy)
-
getLastRevisionHistoryMetadata
com.devonfw.module.basic.common.api.RevisionMetadata getLastRevisionHistoryMetadata(ID id)
- Parameters:
id- theprimary key.- Returns:
- the
RevisionMetadataof the last historicrevisionof the entity with the givenid. Will benullif no such history exists.
-
-