Spatial queries with hibernate 5 and JPA



I use Spatial coordinates from hibernate 5:

@Spatial(spatialMode = SpatialMode.HASH)
@Indexed
@Entity
public class Hotel {

@Latitude
Double latitude;

@Longitude
Double longitude;
}

The help from hibernate explain how to perform a spatial querry using a querry builder. Is there a way to perform this request with spring data jpa ?


Related to : Spatial queries with hibernate 5 and JPA

Privacy Policy - Copyrights Notice - Feedback - Report Violation - RSS 2017 © bighow.org All Rights Reserved .