user1326684
user1326684

Reputation: 1

How call the user define mysql function in Hibernate

I created on function in mysql

SELECT mpm_autogenerate_code(param1,param2)

and i want to call this function using Hibernate Query Language

Upvotes: 0

Views: 3259

Answers (2)

potato
potato

Reputation: 471

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

Upvotes: 0

dash1e
dash1e

Reputation: 7807

You can use native SQL Queries.

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

Upvotes: 1

Related Questions