I have checked the hibernate mapping files, there is no relationship defined at all.
On 4/11/07, Luke McLean <[EMAIL PROTECTED]> wrote:
Check your mapping (I think that 1.9.4 uses XDoclet tags in the classes to define the relationships), it sounds like hibernate has been set up to cascade updates through a relationship between the two classes (parent/child). Therefore when you update the parent it will automatically cascade that update to the related children. Jong Hian Zin wrote: > > 1.9.4 > > On 4/11/07, Matt Raible <[EMAIL PROTECTED]> wrote: >> What version of AppFuse are you using? >> >> On 4/10/07, Jong Hian Zin <[EMAIL PROTECTED]> wrote: >> > Hi all, >> > >> > I did not specify any relationship between tables, but only relate >> > them in the form bean. In the onSubmit() method, I only want to save >> > the parent record, but all the child records get saved as well. I >> > wonder how does Spring MVC know the relationship? Is it through the >> > form bean? >> > >> > Thanks, >> > >> > -- >> > Jong Hian Zin >> > >> > --------------------------------------------------------------------- >> > To unsubscribe, e-mail: [EMAIL PROTECTED] >> > For additional commands, e-mail: [EMAIL PROTECTED] >> > >> > >> >> >> -- >> http://raibledesigns.com >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > > -- > Jong Hian Zin > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Child-records-get-saved-by-only-saving-parent-record--tf3556909s2369.html#a9932619 Sent from the AppFuse - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- Jong Hian Zin --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
