posted 11 years ago
Hi,
I'm new in hibernate and i would like concat 2 fields and put in an alias
like this i mysql:
SELECT CONCAT(a,b) AS c from table ORDER BY CONCAT(a,b)
How can i use this in the query hibernate
Query q = session.createQuery("FROM table order by ?");
thanks for your help