Interface MeasurementRepository
-
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<Measurement,java.lang.String>
,org.springframework.data.mongodb.repository.MongoRepository<Measurement,java.lang.String>
,org.springframework.data.repository.PagingAndSortingRepository<Measurement,java.lang.String>
,org.springframework.data.repository.query.QueryByExampleExecutor<Measurement>
,org.springframework.data.repository.Repository<Measurement,java.lang.String>
@Repository public interface MeasurementRepository extends org.springframework.data.mongodb.repository.MongoRepository<Measurement,java.lang.String>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Optional<Measurement>
findById(java.lang.String id)
Measurement
findByValue(java.lang.String value)
org.springframework.data.domain.Page<Measurement>
search(java.lang.String query, org.springframework.data.domain.Pageable page)
-
Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findAllById, save
-
Methods inherited from interface org.springframework.data.mongodb.repository.MongoRepository
findAll, findAll, findAll, findAll, insert, insert, saveAll
-
-
-
-
Method Detail
-
findByValue
Measurement findByValue(java.lang.String value)
-
findById
java.util.Optional<Measurement> findById(java.lang.String id)
- Specified by:
findById
in interfaceorg.springframework.data.repository.CrudRepository<Measurement,java.lang.String>
-
search
@Query("{ $or: [ { \'name\' : {$regex:?0,$options:\'i\'} } ] }") org.springframework.data.domain.Page<Measurement> search(java.lang.String query, org.springframework.data.domain.Pageable page)
-
-