use of org.apache.ignite.springdata.misc.Person in project ignite by apache.
the class IgniteSpringDataQueriesSelfTest method testExplicitQuery.
/** */
public void testExplicitQuery() {
List<Person> persons = repo.simpleQuery("person4a");
assertFalse(persons.isEmpty());
for (Person person : persons) assertEquals("person4a", person.getFirstName());
}
use of org.apache.ignite.springdata.misc.Person in project ignite by apache.
the class IgniteSpringDataQueriesSelfTest method testContainingPart.
/** */
public void testContainingPart() {
List<Person> persons = repo.findByFirstNameContaining("person4");
assertFalse(persons.isEmpty());
for (Person person : persons) assertTrue(person.getFirstName().startsWith("person4"));
}
use of org.apache.ignite.springdata.misc.Person in project ignite by apache.
the class IgniteSpringDataQueriesSelfTest method testLikeAndLimit.
/** */
public void testLikeAndLimit() {
Iterable<Person> like = repo.findFirst10ByFirstNameLike("person");
int cnt = 0;
for (Person next : like) {
assertTrue(next.getFirstName().contains("person"));
cnt++;
}
assertEquals(10, cnt);
}
Aggregations