#263 - StoreRepository now correctly declares UUID as identifier type.

This commit is contained in:
Oliver Gierke
2017-03-04 18:38:08 +01:00
parent 6d76cb0aba
commit 5b80a0b3c1

View File

@@ -15,6 +15,8 @@
*/
package example.springdata.rest.stores;
import java.util.UUID;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.geo.Distance;
@@ -32,7 +34,7 @@ import com.querydsl.core.types.dsl.StringPath;
*
* @author Oliver Gierke
*/
public interface StoreRepository extends PagingAndSortingRepository<Store, String>, QueryDslPredicateExecutor<Store> {
public interface StoreRepository extends PagingAndSortingRepository<Store, UUID>, QueryDslPredicateExecutor<Store> {
@RestResource(rel = "by-location")
Page<Store> findByAddressLocationNear(Point location, Distance distance, Pageable pageable);