Tag: hibernate spatial

使用JPA Criteria Api和hibernate spatial 4

鉴于这里的查询示例: http : //www.hibernatespatial.org/tutorial-hs4.html Query query = em.createQuery(“select e from Event e where within(e.location, :filter) = true”, Event.class); query.setParameter(“filter”, filter); 是否可以使用jpa 2条件api重写查询?(我不确定我应该如何处理within(e.location, :filter)部分。