users@glassfish.java.net

Re: Many To Many Question

From: <glassfish_at_javadesktop.org>
Date: Mon, 19 Nov 2007 06:52:31 PST

Hello,
  First, you should always set both sides of a relationship as there is no relationship maintenance in JPA.
  With a bi-directional ManyToMany there is no benefit or drawback to setting the ownership on either side. The nature of the underlying table structure means both cases will have the same results in the end.
--Gordon
[Message sent by forum member 'gyorke' (gyorke)]

http://forums.java.net/jive/thread.jspa?messageID=246101