I want to dump some data out of a database based on only some of the data that lies in the DB. Say I have a customer table and an order table. order has a Foreign-Key to customer. An order is built out of many orderline (own table) which in turn have item (own table). Each are linked via FK.
In order to extract test data out of this DB, I want to get the data in a way I can process it, for say 5 orders. The data should contain everything I need to use these orders in my application (e.g. the customers, the items, the orderlines). And I only want to specify some conditions based on the orders I want.
If it does matter, the environment is:
- JavaEE5 on a JBoss
- Hibernate
- Oracle 11g
I'm not opposed to use any language or tool that lets me get this data in a simple way.
Update: I found the following question which deals with a similar problem.