Re: [Hibernate] Cascading inserts

2003-08-27 Thread Gavin King
> > try{ > > if (session!=null) session.close(); > > }catch(Exception ex){ > > throw ex; > > } > > > } > > } > > > regards > prasad chandrasekaran > - Original Message - > From: "Christian Bauer" <[EMAIL PROTECTED]>

Re: [Hibernate] Cascading inserts

2003-08-27 Thread Prasad Iyer
ex){ throw iex; } }finally{ try{ if (session!=null) session.close(); }catch(Exception ex){ throw ex; } } } regards prasad chandrasekaran - Original Message - From: "Christian Bauer" <[EMAIL PROTECTED]> To: "Prasad Iyer" <[EMAIL PROTECTED]> Cc:

Re: [Hibernate] Cascading inserts

2003-08-26 Thread Christian Bauer
On 25 Aug (20:41), Prasad Iyer wrote: > Which option of the cascade I have to use to insert a parent with a child. > I have tried "all" but gives me error. Read the "Parent/child" chapter in the reference documentation. Please stop asking beginner questions on the developer mailinglist. Read the

[Hibernate] Cascading inserts

2003-08-26 Thread Prasad Iyer
Hi, Which option of the cascade I have to use to insert a parent with a child. I have tried "all" but gives me error.   regards prasad chandrasekaran