Joined: Mon Jan 31, 2011 4:30 pm Posts: 1
|
Im fetching entity(parent)-along with child records using detached criteria. And each of these have say 4-5 child records. So when I apply Max results on this root entity object that is If i want to fetch 10 entity objects per page along with their child records, if I use getMaxResults as 10. I only get first 2 entity objects since each of them have 5 child records. I do not get 10 entity objects.
Can someone let me know if we have a solution for this. The query does a top 10 select of the rows disregarding the root entity.
|
|