[jboss-user] [EJB 3.0] - Re: ManyToMany constraints problem

fowlks@msu.edu do-not-reply at jboss.com
Tue Dec 5 14:22:53 EST 2006


I've solved my problem which i belive is the same as yours. My solution was to use the em.merge instead of a em.persist. This is weird because my Owner object is new e.g. (has never been persist before). But this works!!!!! So basicly i have a check to see if child object has a known ID if so then merge else call persist.

- Kevin

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

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



More information about the jboss-user mailing list