Hi,

I have a small test-code (on JBOSS 4.0.4RC1) which execute this actions:

1) create an ABean (persistenced on DB)
2) create an BBean (whith an idA() prop) (persistenced on DB)
3) create an CBean (whith an idA() and idB() props) (persistenced on DB)
4) I excute an ABean.getBBeans() on the bean created in step (1)
   [this select, via CBean, all BBeans indirectly linked to ABean]

In step 4 I obtain a "null" set.  Analizing log I have noted that the 
ABean.getBBeans() EJB3-generated query is executed BEFORE 
the three INSERT!   :(

How is this possibile?  Can JBoss delay an insert AFTER a query which
retrieve the inserted beans?

TIA
Roberto Colmegna


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

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


-------------------------------------------------------
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