Hibernate version: V2.1
When i execute the following query :
Code:
Query q = hSession.createQuery(
"from TabHistorique as TabHistorique " +
"left outer join fetch TabHistorique.tabHistoriqueservices "
);
eTAB_HISTORIQUEs = q.list();
where tabHistoriqueservices is a one-to-many set of TabHistorique it return tabHistoriqueservices*TabHistorique number of row ?
I have to redo
Code:
eTAB_HISTORIQUEs = hSession.find("from TabHistorique");
to have the correct number of line in the list and exploit it.
All work well, the List is correct and one-to-many accessible without database access but is there a solution to do this in one pass ?
Thx to all.