You are a little bit lazy, but nice and relevant.
I read the specs and your understanding is perfectly right.
So  blame SUN, not JBOSS.
My opinion is that the spec is unperfect for relationships and many features are ugly. 
For example, when you get a collection of child entities with a CMR getter, the 
container first get all the id's, then retreive all the fields with a WHERE clause 
like that: (ID=?) OR (ID=?) and so on with all the child Id's. You can imagine with 
1000 childs.

So, I suggest you a third solution: Do not use relationships. Just get childs with a 
finder taking the foreign key as parameter, then you can remove them without hurting 
the database relational integrity. Also, the finder will be faster than the CMR getter.


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

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



-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to