@Repository @Profile(value="jpa") public interface AnalyticsRepositoryJpa extends org.springframework.data.jpa.repository.JpaRepository<AccountAnalyticsJpaEntity,String>
| Modifier and Type | Method and Description |
|---|---|
void |
deleteByAccountId(String id) |
Optional<LocalDateTime> |
findLastAnalyticsDateByUserIdAndAccountId(String userId,
String accountId) |
Optional<AccountAnalyticsJpaEntity> |
findLastByUserIdAndAccountId(String userId,
String bankAccountId) |
deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getOne, saveAll, saveAndFlushfindAllOptional<AccountAnalyticsJpaEntity> findLastByUserIdAndAccountId(String userId, String bankAccountId)
void deleteByAccountId(String id)
@Query(value="SELECT max(analyticsDate) FROM #{#entityName} a WHERE a.userId=:userId and a.accountId=:accountId")
Optional<LocalDateTime> findLastAnalyticsDateByUserIdAndAccountId(@Param(value="userId")
String userId,
@Param(value="accountId")
String accountId)
Copyright © 2019. All rights reserved.