This content has been marked as final.
Show 4 replies
-
1. Re: PropertyNotFoundException, something I am overlooking...
swd847 Oct 17, 2007 7:39 PM (in response to griffitm)are getSearchString and setSearchString part of the local interface?
-
2. Re: PropertyNotFoundException, something I am overlooking...
griffitm Oct 17, 2007 8:09 PM (in response to griffitm)Doh! That was it. Thanks for the shove. More proof that EJB3, although much better than previous versions is not idiot (me) proof.
Cheers! -
3. Re: PropertyNotFoundException, something I am overlooking...
griffitm Oct 18, 2007 10:47 AM (in response to griffitm)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 Session
when 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!
MG -
4. Re: PropertyNotFoundException, something I am overlooking...
jacob.orshalick Oct 18, 2007 10:53 AM (in response to griffitm)Review the documentation regarding SMPC:
http://docs.jboss.com/seam/2.0.0.CR2/reference/en/html/persistence.html
or you could perform a fetch join when retrieving an entity to retrieve associated entities.