If you are using the om classes, when you do an insert an objectKey is returned. You can do something like this Object key = ContactPeer.doInsert(contact);
Then use the toString() to see its value. Hope this helps -----Original Message----- From: Justin Lawler [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 27, 2002 5:43 AM To: Turbine Users List Subject: getting last inserted id I have a mysql database that uses the native database to create a primary key. When i insert a row, is there any easy way of getting the row id the database created from torque? thanks, justin -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
