My program has an add item and finish transaction option. The FinishTransaction class asks the user to input the customer\'s information, meth
1) I don't see that you are maintaining any transaction in your code.
2) In case, if there is any error in the last insert, you'll not be able to see the data in 3rd table. Check your logs for any exception while making insert into third table.
3) Problem that looks quite obvious to me is:
"INSERT INTO TRANSACTION " +
"VALUES(TransNumSeq.NEXTVAL, **CustNumSeq.NEXTVAL**, ?, ?, ?, ?)"
...You are calling the sequence second time, it will have different cust_no than what you have inserted in the first statement.
4) In case, you have defined the cust_num as foreign key in transaction table, the code should break. Because this cust_num doesn't exist in customer table yet.