Currently, Hibernate Spatial functions can be called via Hibernate Criteria API (which is deprecated) or JPQL. To use them in the JPA Criteria API, they have to be manually mapped using CriteriaBuilder#function(String, Class, Expression...), which is tedious and error prone. This is a feature request to add a wrapper to provide a convenient way to use Hibernate Spatial functions from the JPA Criteria API. |