|
From: Pelle B. <pe...@us...> - 2004-03-26 23:47:35
|
Update of /cvsroot/neuclear/neuclear-ledger/src/java/org/neuclear/ledger/servlets In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25331/src/java/org/neuclear/ledger/servlets Modified Files: LedgerServlet.java Log Message: The simple browse(book) now works on hibernate, I have implemented the other two, which currently don not constrain the query correctly. Index: LedgerServlet.java =================================================================== RCS file: /cvsroot/neuclear/neuclear-ledger/src/java/org/neuclear/ledger/servlets/LedgerServlet.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** LedgerServlet.java 25 Mar 2004 22:04:46 -0000 1.5 --- LedgerServlet.java 26 Mar 2004 23:36:34 -0000 1.6 *************** *** 44,47 **** --- 44,50 ---- $Id$ $Log$ + Revision 1.6 2004/03/26 23:36:34 pelle + The simple browse(book) now works on hibernate, I have implemented the other two, which currently don not constrain the query correctly. + Revision 1.5 2004/03/25 22:04:46 pelle The first shell for the HibernateBookBrowser *************** *** 100,106 **** out.println("<table><tr><th>Transaction ID</th><th>Time</th><th>Counterparty</th><th>Comment</th><th>Amount</th></tr>"); while (stmt.next()) { ! final BigDecimal amount = stmt.getAmount(); out.print("<tr"); ! if (amount.compareTo(ZERO) < 0) out.print(" class=\"negative\""); out.print("><td style=\"size:small\">"); --- 103,109 ---- out.println("<table><tr><th>Transaction ID</th><th>Time</th><th>Counterparty</th><th>Comment</th><th>Amount</th></tr>"); while (stmt.next()) { ! final double amount = stmt.getAmount(); out.print("<tr"); ! if (amount < 0) out.print(" class=\"negative\""); out.print("><td style=\"size:small\">"); |