RE: [Hibernate] Re: Hibernate vs. Castor example

2002-12-04 Thread Gavin King
It isn't usually; not unless you have toplevel collections... -Original Message- From: Dave Johnson [mailto:[EMAIL PROTECTED] Sent: Wednesday, 4 December 2002 4:09 PM To: [EMAIL PROTECTED] Subject: [Hibernate] Re: Hibernate vs. Castor example In the Hibernate implementation

[Hibernate] Re: Hibernate vs. Castor example

2002-12-03 Thread Gavin King
Hmm - isn't this idiom inefficient ? Doesn't parent.getChildren().add() (or any method on the collection) result in loading all the children ? I am planning to make same small changes so that add() and remove() *don't* force initialization of a readonly=true collection. I should have done

[Hibernate] Re: Hibernate vs. Castor example

2002-12-01 Thread Dave Johnson
I made a number of small changes to get my example working on HSQL with cascading deletes, then when I switched back to MySQL cascading deletes worked there as well! So yes, cascading deletes work on MySQL. I'd like my example to be using Hybernate in the best way possible (under the constraints