0

I created on function in mysql

SELECT mpm_autogenerate_code(param1,param2)

and i want to call this function using Hibernate Query Language

Sergey K.
  • 24,894
  • 13
  • 106
  • 174
user1326684
  • 1
  • 1
  • 1

2 Answers2

1

You can use native SQL Queries.

Another possibility is to extend a Dialect as described in this answer, but it is more complex.

Community
  • 1
  • 1
dash1e
  • 7,677
  • 1
  • 30
  • 35
0

You migth find this tutorial useful, but it's not HQL

potato
  • 471
  • 2
  • 13