Hi,
I am using JPA 2.0 in JBoss 7.1.2 server. I have entities which have queries with multiple left join fetch. For reference, one query is given below:
SELECT o FROM Panel o left join fetch o.rods left join fetch o.oldStreetChanges left join fetch o.pendingSectors where o.id=:primaryKey
My problem is that JBoss is not able to work with multiple left join fetch and is throwing following exception :
org.hibernate.loader.MultipleBagFetchException: cannot simultaneously fetch multiple bags
I request to all JBoss SMEs to pls. provide some work around for this problem.
This is more of an JPA/Hibernate question. Have you tried the Hibernate forums? (yes, I know the odds of actually getting a response over there )