[jboss-user] [EJB 3.0] - Re: EJB 3.0 questions

lightbulb432 do-not-reply at jboss.com
Wed Jan 3 18:16:10 EST 2007


Some more questions:

2) Why is an exception thrown if an entity is persisted but it has relationships to new or removed entities without a cascade? Isn't the whole point of the cascade setting to give the flexibility of which relationships should be persisted?

3) Many examples of detached entities give the example of a TRANSACTION-scoped EntityManager after the transaction has committed. But in an SLSB, how would you even have access to that detached entity (unless you serialize it and send it on its way...). Isn't the SLSB after the transaction commits gone, which would leave you no way to get to the detached entity reference, right?

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

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



More information about the jboss-user mailing list