struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adriana G <>
Subject GROUP_CONCAT clause
Date Fri, 13 Jul 2012 20:11:49 GMT
I need to know how to use the sql clause group con_cat in HQL.
I found this, but it does'nt Work, or maybe i don't know what else is missing.

import org.hibernate.cfg.Configuration;
import org.hibernate.dialect.function.StandardSQLFunction;
 import org.hibernate.type.StringType;

 // myConf.addSqlFunction("group_concat", new
StandardSQLFunction("group_concat", new StringType()));

registerFunction("group_concat", new
StandardSQLFunction("group_concat", Hibernate.STRING));

Please i really need this.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message