I have an entity class Food. It has a many-to-one field called "foodGroup", this will be eagerly fetched by default, and I do want it to be eagerly fetched. Another one-to-many field called "nutrients" is supposed to be eagerly fetched too. But I got an exception saying "cannot simultaneously fetch multiple bags". How to get rid of this problem? I want eager fetches but no lazy, thanks!
Regards,
Ellen
My recollection is that this is a limitation imposed when using Lists instead of Sets, however I can't find the post that I read this in (Hibernate forums).