@Repository @Profile(value="jpa") public interface UserRepositoryJpa extends org.springframework.data.jpa.repository.JpaRepository<UserJpaEntity,String>
| Modifier and Type | Method and Description |
|---|---|
List<UserJpaEntity> |
findByExpireUserLessThan(LocalDateTime date) |
Optional<UserJpaEntity> |
findById(String id) |
LocalDateTime |
getRulesLastChangeDate(String userId) |
int |
setRulesLastChangeDate(LocalDateTime changeDate,
String id) |
deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getOne, saveAll, saveAndFlushfindAllOptional<UserJpaEntity> findById(String id)
findById in interface org.springframework.data.repository.CrudRepository<UserJpaEntity,String>List<UserJpaEntity> findByExpireUserLessThan(LocalDateTime date)
@Query(value="SELECT rules_last_change_date FROM mbs_user WHERE id = ?1",
nativeQuery=true)
LocalDateTime getRulesLastChangeDate(String userId)
@Modifying @Query(value="update mbs_user user set user.rulesLastChangeDate = ?1 where user.id = ?2") int setRulesLastChangeDate(LocalDateTime changeDate, String id)
Copyright © 2020. All rights reserved.