users@glassfish.java.net

Re: JPA: persist entity A (many) without persisting B(one)

From: <glassfish_at_javadesktop.org>
Date: Wed, 16 Jul 2008 09:02:30 PDT

Hello,

Not sure I understand. JPA is persisting objects, so I assume you have an Entity A and an Entity B. Just create new B objects and call em.persist on them. Unless you have constraints set that B cannot exist without As, there shouldn't be any problems.

Best Regards,
Chris
[Message sent by forum member 'chris_delahunt' (chris_delahunt)]

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