Did you consider asking this in a Hibernate list? This list is for Struts
questions.

Dave

(pardon brevity, typos, and top-quoting; on cell)
On Jul 13, 2012 4:12 PM, "Adriana G" <adrianalea...@gmail.com> wrote:

> 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-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>

Reply via email to