|
From: saneera g. <sa...@gm...> - 2007-04-18 03:27:44
|
hi i want to do hibernate paging and i use criteria query for that ,and my criteria query got duplicate records and then i used setResultTransformer(Criteria.DISTINCT_ROOT_ENTITY) method to avoid that after i used setFirstResult and setMaxresult bt it wouldnt working my search result has 45 recoreds and but it showing 6 records only without using setResultTransformer(Criteria.DISTINCT_ROOT_ENTITY) method it works fine but getiing duplicate records how can i avoid duplicate record and paging witout above issues pls help me thanks best reguards Saneera |