{"push_id":1187597823,"size":1,"distinct_size":1,"ref":"refs/heads/issue/DATACASS-7","head":"fb19dddbef49a36b56ebd89352be32949fb6d3eb","before":"d45ac2a46358bedbf0a5ae0f23c7b9b8013f62f4","commits":[{"sha":"fb19dddbef49a36b56ebd89352be32949fb6d3eb","author":{"name":"Mark Paluch","email":"3a8a38f3b609e311443cc545f7af5d9f957679c2@pivotal.io"},"message":"DATACASS-7 - Support query methods.\n\nWe now support query derivation for Cassandra repositories. Repositories may declare query methods and queries are created based on the repository declaration.\n\ninterface PersonRepository extends CassandraRepository<Person> {\n\n\tList<Person> findByLastname(@CassandraType(type = Name.VARCHAR) String lastname);\n\tList<Person> findByLastname(String lastname, Sort sort);\n\tList<Person> findByLastnameOrderByFirstnameAsc(String lastname);\n\n\tinterface PersonProjection {\n\n\t\tString getFirstname();\n\n\t\tString getLastname();\n\t}\n}\n\n@Table\n@Data\npublic class Person {\n\t@PrimaryKeyColumn(type = PrimaryKeyType.PARTITIONED, ordinal = 0) private String lastname;\n\t@PrimaryKeyColumn(type = PrimaryKeyType.CLUSTERED, ordinal = 1) private String firstname;\n}\n\nQuery derivation supports a basic set of where predicates:\n* = (Equals/Simple property)\n* >= (Greater or equal)\n* > (Greater)\n* < (Less)\n* <= (Less or equal)\n* IN, LIKE (Like, Starting with, Ending with), CONTAINING\n* = true (Is true)\n* = false (Is false)\n\nDerived queries work with primary-key and non-primary key columns. Non-primary key columns require a secondary index otherwise these fields can't be queried.","distinct":true,"url":"https://api.github.com/repos/mp911de/spring-data-cassandra/commits/fb19dddbef49a36b56ebd89352be32949fb6d3eb"}]}
{"actor":{"display_login":"mp911de"}}