[jboss-user] [EJB 3.0] - Merge question

dkalna do-not-reply at jboss.com
Mon Mar 19 09:44:55 EDT 2007


Hi everybody,

may be simple question, but anyway:

I have "1 to n" relationship between A and B objects.
I get ma A from EntityManager, I call getBs() which
give me a Collection of Bs. Now I remove one B from
Collection (iterator.remove()) and call merge on A.

I would like to see that B I have removed in code will be
deleted from DB. Is this right or completely wrong?

Thanks a lot
Dalibor

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

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



More information about the jboss-user mailing list