2 Replies Latest reply on Jul 13, 2005 9:56 PM by doofus

    OneToMany FetchType ignored

    manica Newbie

      beta1 always eager loads collections, even when annotated with FetchType.LAZY.

      I have the following test, which passed in Preview5 but fails in Beta1:

      try { foo.getLazyItems().size(); fail(); }
      catch (LazyInitializationException e) {assertTrue(true);}
      


      This is similar to http://jira.jboss.org/jira/browse/EJBTHREE-134, but includes the OneToMany tag now.

      Darin