when we make fetch with a related list, setMaxResult give error. because your code generate left join fetch and hibernate doesnt allow to query with it to get Total Count. So remove fetch please. only left or right join is enough. No need fetch word.
when we make fetch with a related list, setMaxResult give error. because your code generate left join fetch and hibernate doesnt allow to query with it to get Total Count. So remove fetch please. only left or right join is enough. No need fetch word.