#250 - Polishing.

Use Cassandra streaming query with query derivation instead of a String-based query.
This commit is contained in:
Mark Paluch
2017-01-25 12:13:08 +01:00
committed by Oliver Gierke
parent 54ab8178b7
commit 319d3e1a17
4 changed files with 7 additions and 8 deletions

View File

@@ -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();
}
```