struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Newton <davelnew...@gmail.com>
Subject Re: GROUP_CONCAT clause
Date Mon, 16 Jul 2012 12:42:33 GMT
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" <adrianaleal14@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-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message