Hello there,
I'm facing some issues using hibernate + MySQL (5.1.41), especially using a MySQL function I registered previously when I try to do a query using hibernate (and so, Hibernate Query Language).
I think that the HQL doesn't "know" my MySQL function when I try to use it in a query, for exemple when I try to do :
Code:
Query q = em.createQuery("select id from MyObject where MyFunction(firstparam, seconparam) <= condition");
List<?> l = q.getResultList();
How can I register my MySQL function to allow Hibernate to "understand" it?
I've found in the API documentation
this class but nothing to allow me to use it...
The reference is talking about Database Functions
here but quite succintly...
Any help would be very welcome :)
Yoann