are getSearchString and setSearchString part of the local interface?
Doh! That was it. Thanks for the shove. More proof that EJB3, although much better than previous versions is not idiot (me) proof.
Arg! Now I am getting a LazyInitializationException:
09:34:39,137 ERROR [LazyInitializationException] could not initialize proxy - no Session org.hibernate.LazyInitializationException: could not initialize proxy - no Sessionwhen I execute my query:
deliverables = em.createQuery("select d from Deliverable d").getResultList();
How can I force all of the associations to be retrieved as well? Why is this automatically done with EntityHome objects and not other queries?
Thanks in advance!
Review the documentation regarding SMPC:
or you could perform a fetch join when retrieving an entity to retrieve associated entities.