Saturday, February 20, 2016

Java Hibernate "org.hibernate.loader.MultipleBagFetchException: cannot simultaneously fetch multiple bags"

There are a couple ways to fix it. Using Set instead of List is better than changing the fetch type to Lazy. You can find more information about that here in SO http://stackoverflow.com/questions/4334970/hibernate-cannot-simultaneously-fetch-multiple-bags