i'm developping a similar application (java GUI and EJB3 server) and i'm 
struggling with the same problem..

My Customer object has lot of nested objects (Address, SaleCondition, etc) and 
right now i just grabbed the whole object in one fetch when returning query 
results, which i can't keep doing as it's extremely inefficient.

I like your idea of specifying a loadLevel (or maybe a load ENUM), very much.  
But my questions is, suppose you have fetched 'half' of your Customer object 
and the client needs some more data (suppose you have fetched the Address 
lazily). How do you merge the new data with the existing object on the client; 
Or should i fetch the whole object again?

I also agree with martin that you don't need store levels as it is handled by 
the cascade option, i see no need for client to persist half entities..

Also are either of you using any good books about EJB3, and specifically with 
EJB3 with regular java clients?

greetings!

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3910935#3910935

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3910935


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to