This content has been marked as final. Show 3 replies
You could try using Hibernate extra-lazy collections. I believe calling .size() does a COUNT() rather than actually fetch all the records.
Have a search on
extra lazy collections
Oh the extra-lazy thing is just what I was after. Thanks!