because when transfer saves any of those objects, it has to re-save the entire related set. Turn on query debugging and watch what is going on there.
Often times I find myself using manyToOne relationships from the child objects, or (more often lately) re-producing my desired effect with a simple decorator method. You really only want to use relationships when you will need all the related objects most of the time, as some of them will add quite a bit of cost to updates and saves (as you see here) Chris Peterson On Tue, Feb 3, 2009 at 11:41 AM, aurel <adeleusi...@gmail.com> wrote: > > I'm sure this is a trivial issue. I've modified the way to link the > locale.Menu to locale.Langue : > > <package name="locale"> > > <object name="Menu" table="xx_menu_lng"> > <compositeid> > <parentonetomany class="menu.Menu" > /> > <manytoone name="Langue" /> > </compositeid> > > <property name="label" type="string" > column="mnl_label" /> > <property name="content" type="string" > column="mnl_content" /> > > <manytoone name="Langue" lazy="true"> > <link to="locale.Langue" > column="mnl_lng_id" /> > </manytoone> > > </object> > > <object name="Langue" table="xx_langue"> > <id name="Id" type="numeric" > column="lng_id"/> > > <property name="codeIso" type="string" > column="lng_code_iso"/> > </object> > > </package> > > And the performances are quite good (300ms). > > What is wrong by using two parentonetomany in a compositeid? > > > -- Hey! I dont tell you how to tell me what to do, so dont tell me how to do what you tell me to do! ~ Bender (Futurama) --~--~---------~--~----~------------~-------~--~----~ Before posting questions to the group please read: http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer You received this message because you are subscribed to the Google Groups "transfer-dev" group. To post to this group, send email to transfer-dev@googlegroups.com To unsubscribe from this group, send email to transfer-dev-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/transfer-dev?hl=en -~----------~----~----~----~------~----~------~--~---