1 Reply Latest reply on Sep 20, 2008 2:45 PM by Rahul B

    cannot simultaneously fetch multiple bags

    Rahul B Newbie

      Hi All,

      javax.persistence.PersistenceException: org.hibernate.HibernateException: cannot simultaneously fetch multiple bags

      I have a class and traversing is in this way

      ABC Class ----> RDefination ---> RDetail

      I have @oneToMany relationship and fetching strategy as Lazy. I have used list..


      @OneToMany
      @IndexColumn(name="INDEX_COL")
      public List getRules() {
      return rules;
      }


      @OneToMany
      @IndexColumn(name="INDEX_COL")
      public List getRDetails() {
      return ruleDetails;
      }

      still it is giving me an error.

      Thanks,
      Rahul