I believe it should be happening automatically. I'd consult the Hibernate documentation/forums for further clarification.
Matt On Mon, Sep 14, 2009 at 12:14 PM, measwel <marek_karczew...@yahoo.com.au>wrote: > > My User has a OneToOne mapping to Address. In my form I fill out both User > and Address data and OGNL seems to map the parameters for both objects. > When > I save User, I get the exception; a related transient entity nees to be > saved before flushing (refering to Address) > > In general; when saving related objects, should the related object be saved > by hand, or is there a way to automate this, so both objects get saved > automatically? > > > -- > View this message in context: > http://www.nabble.com/saving-related-objects-tp25440670s2369p25440670.html > Sent from the AppFuse - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net > For additional commands, e-mail: users-h...@appfuse.dev.java.net > >