From: Matthias G. <Mat...@we...> - 2008-12-12 18:41:39
|
Hi Ralf, if you have cyclic dependencies dbunit throws a CyclicTablesDependencyException when you try to load it. But nevertheless I see your point and dbunit could - at least for FlatXml - also dynamically add rows of a table, even when there are different tables inbetween. I am not sure why the AmbiguousTableNameException is thrown at the moment. Perhaps one of the other developers has more insight into this? Regards, matthias > -----Ursprüngliche Nachricht----- > Von: "Ralf Wisser" <Ral...@gm...> > Gesendet: 12.12.08 09:17:13 > An: dbu...@li... > Betreff: [dbunit-developer] Flat XML dataset format, issue with cyclic dependencies. > Hi, > > as you already may know I'm trying to develop a generator for Flat XML dataset documents. > I found out that the rows in a dataset not only have to be sorted according to dependencies (in order to prevent FK constraint violation during import), but also have to be "grouped by table". > > For the latter; is there a way to import a dataset if the rows of a table are not arranged successively? (I get a AmbiguousTableNameException if I try this) > > It seems to me that it is not always possible to sort the rows according to dependencies _and_ by table, especially if there are cyclic dependencies between the tables. > > For example, if we have: > > - two tables: A and B, A depends on B, B depends on A > - and three rows: a1, a2 from A, b from B, a2 depends on b, b depends on a1 > > then the only possible order is: a1, b, a2. > How would a dataset with these three rows look like? > > best regards, > Ralf > > > -- > Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger > > ------------------------------------------------------------------------------ > SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. > The future of the web can't happen without you. Join us at MIX09 to help > pave the way to the Next Web now. Learn more and register at > http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ > _______________________________________________ > dbunit-developer mailing list > dbu...@li... > https://lists.sourceforge.net/lists/listinfo/dbunit-developer > ____________________________________________________________________ Psssst! Schon vom neuen WEB.DE MultiMessenger gehört? Der kann`s mit allen: http://www.produkte.web.de/messenger/?did=3123 |