i using dbunit exporting dataset xml. wonder there "simple" way dependet tables , data given table name , criterion?
private void exportdbdepended() throws exception { string[] deptablenames = tablesdependencyhelper.getalldependenttables(connection, "dbo.users" ); idataset depdataset = connection.createdataset( deptablenames ); flatxmldataset.write(depdataset, new fileoutputstream("dependents.xml")); } this gives me records , dependet data, fetch top 100 records, or other condition table.
thanks in advance, dario
i didn't manage solve requirement programmatically, http://jailer.sourceforge.net/ more eneugh preparing xml db data. reading.
best regards, dario sarcevic
Comments
Post a Comment