Mixing criteria api with hibernate spatial

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Mixing criteria api with hibernate spatial

One Sho
Hello folks,
i'm thinking of  using jpa2 criteria api for my little app but before i actually go through the hassle of learning to use it would like to know if  this bit of code can be rewritten using the  criteria api :
Query query = em.createQuery("select e from Event e where within(e.location, :filter) = true", Event.class);
query.setParameter("filter", filter);
Also posted here: http://stackoverflow.com/questions/18822133/using-jpa-criteria-api-and-hibernate-spatial-4-together

Thank you for your patience,
Otis

_______________________________________________
hibernatespatial-users mailing list
[hidden email]
http://www.hibernatespatial.org/cgi-bin/mailman/listinfo/hibernatespatial-users