-
1. Re: How does FetchType.LAZY affects Entities called by a cli
martinganserer Oct 14, 2005 1:50 AM (in response to heinrich)Hello Heinrich,
I already had a similar question. Please got to:
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=69112
Maybe it helps you further! -
2. Re: How does FetchType.LAZY affects Entities called by a cli
heinrich Oct 14, 2005 4:11 AM (in response to heinrich)hi,
thanks a lot.
It does not satisfy my intention. I thought the ValueObjects were obsolete in EJB3.0.
So i have to rebuild my application for speedup.
bye -
3. Re: How does FetchType.LAZY affects Entities called by a cli
martinganserer Oct 14, 2005 7:03 AM (in response to heinrich)Hi,
wait a moment! You don't need Value Objects necessarily when you work with lazy loading in a thin client environment. But as soon as you jump over the border of the remote interface you have to take an alternative approach. Do you have a fat client - swing for example? -
4. Re: How does FetchType.LAZY affects Entities called by a cli
heinrich Oct 14, 2005 8:31 AM (in response to heinrich)hmm, yes i have. Its a Swing Client. It was written for EJB2.1 and we now have to go further on the project and migrate it to ejb3.0.
All teh entities, interfaces, value and lightValue object were generated by middlegen. But the middlgen plugin for ejb3.0 is not that capable for these features.
So we have to implement them on our own like some other improvements for ejb3.0.
Thanks for your help
martin -
5. Re: How does FetchType.LAZY affects Entities called by a cli
silviu.marcu Oct 19, 2005 2:43 PM (in response to heinrich)http://docs.jboss.org/ejb3/app-server/tutorial/merge/merge.html
contains an explanation of detached objects (value objects)
You need only to define what data to be contained into the detached objects (for lazy relations you can create extra methods with queries to populate only the relations needed, this gives you flexibility to choose what to send outside the ejb container)
see the JOIN FETCH option into the ejb3 documentation -
6. Re: How does FetchType.LAZY affects Entities called by a cli
heinrich Oct 20, 2005 2:58 AM (in response to heinrich)Thanks,
that's how a expected it to work.
But the case using the lightValueObject isn't defined anywhere i guess.