to accomodate testing in a large batch system I would like to have the possibility to export data from many tables that are all in a "master - detail" relationship, i.e. they are connected via foreign keys. I know I can do that programmatically via DBUnit for example. Is there any framework / utility / tool for which I can just define the tabel relationships (e.g. table a is master for table b via foreign key b.1 and table c via foreign key c.1) and then give a condition for the master table (... where a.attribute = 'someCriteria') and the tool exports all connected data and lets me import the data on another database (thus I have a consistent subset of data of the source tables).
Any hints are appreciated. Thx.