hibernate - Java HQL how to access objects after using a join -


trying understand using joins hql.

def result=food.findall('from mealitems m, nutrition n m.food=n.food); 

the result returns, i'm not understanding how/what returns.
can access nutrition object on each result?

for(row in result){      var ntr=row.nutrition;      println ntr.calories;    }  

suggest should read on hibernate.

it transforms result set list of object arrays. utimately if able map result corresponding classes so.

have @ these links. should how hibernate works hql query if transformer not explicit declared

http://levelup.lishman.com/hibernate/hql/joins.php


Comments

Popular posts from this blog

css - SVG using textPath a symbol not rendering in Firefox -

Java 8 + Maven Javadoc plugin: Error fetching URL -

datatable - Matlab struct computations -