Thanks, that thread was very enlightening.
I understand how annotating relationships as EAGER can be really bad sometimes, 
however IMHO it is impossible to foresee every scenario a developer will run 
into and impossible to be sure that he will never, ever, have a reson to use 
it, thus EAGER relationships, even if nested in other EAGER relationships 
should work as advertised. In this case some overhead would be necessary to get 
the framework to show the expected behavior but it's a small price to pay.
I don't mean to criticize the great work being done in EJB/Hibernate and I DO 
think things should be implemented in the most efficient way, but the time lost 
in trying to figure out what is going on and then explaining it to others could 
have been used in more productive things.
If a developer has certain performance needs than he should do his homework 
about best practices and enable/disable whatever options are necessary. The 
default gain in performance and the obligation to use what is supposed to be 
the best practice should not come at the expense of odd framework behavior, 
even in rare cases.
Anyway that's just my opinion. In the end I did work around the problem by 
changing the said relationships to LAZY and making some other adjustments in my 
code. Sorry if I sound bitter, I know it's still in beta and all... it's just 
some frustration for the time I invested in trying to make things work.

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

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


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to