Re: [Hibernate] ... and how about bidirectional for a component? :)

2003-01-29 Thread Viktor Szathmary
On Wed, 29 Jan 2003 00:06:38 -0500, Viktor Szathmary [EMAIL PROTECTED] said: hi, to annoy people with more trivial questions: is it possible to have a bidirectional one-to-many relationship between a component and a firstclass object? i'm getting a MappingException: An association refers to

Re: [Hibernate] ... and how about bidirectional for a component? :)

2003-01-29 Thread Gavin . King
Note also that there are actually some *advantages* to a bag. We can add to a bag without initializing it. So if you are mostly adding, a bag will be faster. If you are mostly updating or removing, it will be slower. Note also that bags cannot add and remove elements individually (this makes

Re: [Hibernate] ... and how about bidirectional for a component? :)

2003-01-29 Thread Viktor Szathmary
On Wed, 29 Jan 2003 00:57:42 -0500, Viktor Szathmary [EMAIL PROTECTED] said: however, apparently this is less efficient than a regular one-to-many was: even upon the first save(..) it generates: INSERT INTO Subscription ... INSERT INTO Item ... DELETE FROM Item ... INSERT INTO Item ...

Re: [Hibernate] ... and how about bidirectional for a component? :)

2003-01-29 Thread Gavin . King
by:cc: [EMAIL PROTECTED] Subject: [Hibernate] ... and how about bidirectional for a component? eforge.net