Im using Spring hibernateTemplates to perform a search. My daoImpl looks like
Code:
public List<Game> findWinningAces(String hero)
{
List<Game> results = getHibernateTemplate()
.find(
"FROM Game as g join g.holdings as h with h.herosHolding = 1 join h.persistedHoldingClassification as c"
+ " WHERE c IN ('ACES') AND g.gameResolution.winner = ?",
hero);
return results;
}
The wierd thing is that each element in the list returned is not a Game, but an array of Objects, the first of which is a Game and the second of which is another Object (holdings, from the hql above, is a set of these objects)
how is hibernate packaging each row of the result set as an Object array?