struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adriana G <adrianalea...@gmail.com>
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.

Adriana

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message