I finally solve that adding a configuration on the sessionfactoryutil:
import org.hibernate.cfg.Configuration;
import org.hibernate.dialect.function.StandardSQLFunction;
import org.hibernate.type.StringType;
// ...
private static SessionFactory sessionFactory;
static {
Configuration conf= new Configuration();
conf.configure();
conf.addSqlFunction("group_concat", new StandardSQLFunction("group_concat", new StringType()));
sessionFactory = conf.buildSessionFactory();
}