/spring-data-snowdrop

Spring Data implementation for Hibernate Search, JPA (full-text), Infinispan, GAE, ...

Primary LanguageJavaApache License 2.0Apache-2.0

Spring Data + Snowdrop

We're following features from SpringData Common implementation

Currently supported backends

  • JPA (Hibernate Full-Text search)
  • Infinispan Embedded
  • Infinispan Remote
  • Google App Engine
  • Google Cloud Datastore

e.g.

List<SimpleEntity> findByLocationWithin(double latitude, double longitude, double distance);
List<SimpleEntity> findByNameNot(String notName, Sort sort);
List<SimpleEntity> findByNumberBetween(int min, int max, Sort sort);

Usage:

@Test
public void testOps() {
    assertSize(repository.findByLocationWithin(24.0, 31.5, 55), 1);
    assertIds(repository.findByNameNot("doug", Sort.by(Sort.Direction.DESC, "hero")), 1, 2, 5, 3, 6);
    assertIds(repository.findByNumberBetween(-5, 11, Sort.by("hero")), 4, 3);
}