Re: MySQL - Can insert and select but not update...

2006-12-15 Thread Shane Beasley
Jon August wrote: I'm using Torque 3.2 and MySQL. I'm having no problems inserting data and selecting data, but when I try the following, it doesn't get saved to the database: if (OrderLine.lineExists(orderId, itemId)) { ol = OrderLine.getOrderLineById(orderId, itemId);

Re: retrieve columns returned by doSelect(Criteria) query

2006-12-14 Thread Shane Beasley
David Zhao wrote: If I did this: Criteria crit = new Criteria(); crit.addJoin(Table1Peer.ID1, Table2Peer.ID2, Criteria.INNER_JOIN ); crit.addSelectColumn(Table1Peer.ID1); crit.addSelectColumn(Table2Peer.NAME); crit.addSelectColumn(Table2Peer.NOTES); List list = null; try { list =

tip: maven-torque-plugin and the maven (1.x) console

2006-12-12 Thread Shane Beasley
I like to use the maven (1.x) console. However, I was noticing that the Torque plugin really didn't like it when I ran the `clean` goal or otherwise blew away the generated OM files after they'd already been built. To get it to rebuild, I had to exit and re-enter the console. Further