3 Replies Latest reply on Mar 13, 2009 11:20 AM by tchello

    cannot simultaneously fetch multiple bags WTH!

    tchello

      Hi!
      I've made a search by entire google but i coudnt solve this, yet,
      I read all those threads and i wasnt able to find a solution:

      http://www.jboss.org/index.html?module=bb&op=viewtopic&t=82946&postdays=0&postorder=asc&start=10

      http://www.jroller.com/eyallupu/entry/solving_simultaneously_fetch_multiple_bags

      http://www.jroller.com/eyallupu/entry/hibernate_exception_simultaneously_fetch_multiple

      http://forum.hibernate.org/viewtopic.php?p=2310316&

      Even if i use Set and HasSet it is not working.
      I can't use Lazy Loading, just EAGER.

      What am i supose to do now?
      There is no solution working here, annotation @IndexColumn and Sets dont seems to fit (i tried before posting).
      Please, somebody help me, i dont know what to do now =/

      Thank you!

        • 1. Re: cannot simultaneously fetch multiple bags WTH!
          tchello

          Ops, i'm using an unidirectional OneToMany relation with List and ArrayList (and i cannot change this).

          • 2. Re: cannot simultaneously fetch multiple bags WTH!
            wolfgangknauf

            Hi,

            could you post the code snippets of the relationship?

            Why can't you change to Sets? Do you need the order of items?
            Maybe it would help to convert the relationship to sets and add some "converter" methods to your entities, which convert the set to a list and vice versa?

            Wolfgang

            • 3. Re: cannot simultaneously fetch multiple bags WTH!
              tchello

              I solved this problem today, right now.
              Just adding @IndexColumn in all Entitys i could find (including by editing another developers entitys).
              But now i'm getting another problem when i added a new WebService:

              Error creating callback handler for bean erpagronegociows.ws.VendaWS


              Well, it was working before i add a webservice but now even if i remove it, it is not working anymore =/
              Do you have any ideia what could it be?

              I cleaned all tmp files from jboss (4.2.2 and i cant change, unfortunaly) and restart it.

              Thank you for your good kindness.