@Repository
@Profile(value={"mongo","fongo"})
public interface UserRepositoryMongodb
extends org.springframework.data.mongodb.repository.MongoRepository<UserEntity,String>
| Modifier and Type | Method and Description |
|---|---|
List<UserEntity> |
findByExpireUserLessThan(LocalDateTime date) |
Optional<UserEntity> |
findById(String id) |
findAll, findAll, findAll, findAll, insert, insert, saveAllfindAllOptional<UserEntity> findById(String id)
findById in interface org.springframework.data.repository.CrudRepository<UserEntity,String>@Query(fields="{id : 1}")
List<UserEntity> findByExpireUserLessThan(LocalDateTime date)
Copyright © 2018. All rights reserved.