All,
Setup: JPA 1.0 jars, TransactionType=JTA, TransactionAttribute=NOT-SUPPORTED for EJB3 SLSB
Issue: using EJBQL, if just one "left outer join fetch", the object and association are both initialized. If an additional join fetch is added, no association is initialized and I got LazyInitialization error when accessing.
e.g. select a from A a left outer join fetch a.B b => both a and b are fetched and initialized. select a from A a left outer join fetch a.B b left outer join fetch b.C c => all a, b, c are fetched as shown in SQL displayed, however only a is initialized, thus accessing b gives an LazyInilization error.
Could any shed some light on this one?
Thanks, - John
|