@Repository public interface JaversSnapshotRepository extends org.springframework.data.jpa.repository.JpaRepository<JvSnapshotEntity,Long>
| Modifier and Type | Method and Description |
|---|---|
Long |
countByCommitId(Long commitId) |
void |
deleteByGlobalIdIn(Collection<Long> globalIds) |
void |
deleteByVersionAndGlobalIdAndCommitId(Long version,
Long globalId,
Long commitId) |
List<JvSnapshotEntity> |
findAllByGlobalIdIn(Collection<Long> globalIds) |
List<JvSnapshotEntity> |
findAllByGlobalIdOrderByVersionAsc(Long globalId,
org.springframework.data.domain.Pageable pageable) |
org.springframework.data.domain.Page<JvSnapshotEntity> |
findAllByTypeIs(org.javers.core.metamodel.object.SnapshotType type,
org.springframework.data.domain.Pageable pageable) |
JvSnapshotEntity |
findFirstByGlobalIdOrderByVersionAsc(Long globalId) |
List<JaversCountResponse> |
findGlobalIdAndCountGreaterThan(long count) |
deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getById, getOne, getReferenceById, saveAll, saveAllAndFlush, saveAndFlushfindAllorg.springframework.data.domain.Page<JvSnapshotEntity> findAllByTypeIs(org.javers.core.metamodel.object.SnapshotType type, org.springframework.data.domain.Pageable pageable)
List<JvSnapshotEntity> findAllByGlobalIdIn(Collection<Long> globalIds)
List<JvSnapshotEntity> findAllByGlobalIdOrderByVersionAsc(Long globalId, org.springframework.data.domain.Pageable pageable)
JvSnapshotEntity findFirstByGlobalIdOrderByVersionAsc(Long globalId)
@Modifying void deleteByVersionAndGlobalIdAndCommitId(Long version, Long globalId, Long commitId)
@Modifying
@Query(value="DELETE FROM JvSnapshotEntity e WHERE e.globalId IN (:globalIds)")
void deleteByGlobalIdIn(@Param(value="globalIds")
Collection<Long> globalIds)
@Query(value="SELECT e.globalId AS id, COUNT(e.globalId) AS count FROM JvSnapshotEntity e GROUP BY e.globalId HAVING COUNT(e.globalId) > :count") List<JaversCountResponse> findGlobalIdAndCountGreaterThan(@Param(value="count") long count)
Copyright © 2025. All rights reserved.