currentTransaction.setPayee(payee);
transactionDAO.update(currentTransaction, false);
}
// create transaction splits
TransSplitDAO transSplitDAO = (TransSplitDAO)daoFactory.getDAO("transSplit");
try {
for (int i=0; i<transSplitList.size(); i++) {
currentTransSplit = (TransSplit)transSplitList.get(i);
//System.out.println("Split: " + currentTransSplit.getTransSplitID());
where = "where TRANS_SPLIT_ID = '" + currentTransSplit.getTransSplitID() + "'";
if (transSplitDAO.load(where, null, true).size() == 0)
transSplitDAO.create(currentTransSplit, false);
else
transSplitDAO.update(currentTransSplit, false);
}
}
catch (Exception ex) {
System.out.println("Error with transSplit:\n" +
currentTransSplit.getTransSplitID() + "\n" +