1 Reply Latest reply on Apr 16, 2013 9:00 AM by Nicklas Karlsson


    akash bansal Newbie



      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.