database column values comparison java application
Posted on 2014-04-04
I have one oracle database table say XYZ. My application1 takes input(inputfile.txt) and generate output file(outputfile.txt) and updates table xyz
Application2 gets generated outputfile.txt as its input and generates outputfile2.txt and also updates same table XYZ.
Both applications inserting/updating same table XYZ. I want to see Application 2 is inserting/updating same was similar to how application 1 is doing by comparing values of table xYZ after application1 ran and after application2 ran. I need to make sure both cases values in the XYZ table are same.
MAy be creating Bean with database columns and then creating bean instance(Bean1.java) after running application1 and creating bean instance(Bean2.java) after runing application2.Then comparing Bean1.java and Bean2.java.
If there are any differences I need to capture them as one other differencesfile.txt.
Any links resources ideas highly appreciated. Thanks in advance