Hi Shong,
We have 2 tables. Order and Order_Item. We have to join these 2 tables. As shown
The Order contains Order details and Order_Item contains details about each item purchased by customer.
We have to read these two database tables are write a text file.
Below is the output file format, which is to be iterated for all the orders. I have specified for format example for 1 order record.
1) #|00611|001|1234|06/26/2013 10:55:00|00000096660|987651234|test@test.com|Order_1
2) $|1872|Item_1|11.11|Shirt
3) $|1847|Item_2|76.11|Jeans
4) $|1879|Item_3|35.11|Top
5) %|4|3|122.33
First line contains Order specific details such as Order number, creation date, email id. 2 to 4th line contains order items details such as item no, description, price. The last line 5th contains aggregate of no of lines for the order, no of line items and total price.
Let me know what type of components we need to use or write our custom java code to produce desired output.
Thanks
Jatin