Hi All,
I am haing a few problems with a basic query and printing a list to freemarker.
Code:
SessionFactory sessionFactory = new Configuration().configure().buildSessionFactory();
session =sessionFactory.openSession();
String SQL_QUERY = "from T1 AS t1, T2 AS t2 where t1.xxx='value' and t2.yyy='value'";
Query query = session.createQuery(SQL_QUERY);
result = query.list();
This result could be more than one. I need to print this using freemaker
Code:
<table ><tr>>DEMO</th>
<#list result as r>
<tr><td>${r.column}<#if r_has_next></#if>
</#list>
</table>
However, it refused to print the entry. Any suggestions?
Thanks