#250 - Polishing.
Use Cassandra streaming query with query derivation instead of a String-based query.
This commit is contained in:
committed by
Oliver Gierke
parent
54ab8178b7
commit
319d3e1a17
@@ -12,9 +12,8 @@ public interface PersonRepository extends CrudRepository<Person, String> {
|
||||
@Override
|
||||
List<Person> findAll();
|
||||
|
||||
//Custom Query method returning a Java 8 Stream
|
||||
@Query("SELECT * FROM person")
|
||||
Stream<Person> findAllByCustomQueryWithStream();
|
||||
// Derived query method returning a Java 8 Stream
|
||||
Stream<Person> findAll();
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user