Hi Edson! The simplest way to do this is to set the date in your value-object. Eg setMyDate(new Date()); and then store the object. Since most databases I tested support higher time-resolutions than whole seconds or in your case (guessing oracle) 1/10 of a second if I remember correctly it should be good enough.
Regards Roland Carlsson PS: Please don't send secure messages to a mailinglist. If you need them to be secure add a hash in the end of the message so it can be verified to be not alterd. ----- Original Message ----- From: Edson Carlos Ericksson Richter To: 'OJB Users List' Sent: Monday, September 08, 2003 3:56 PM Subject: How to use DUAL Hi! I want to execute a query in OJB to obtain database server DATE. The query is select TIMESTAMP from DUAL How can I accomplish this using OJB? Should I use Procedures? Thanks, Edson Richter --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.515 / Virus Database: 313 - Release Date: 1/9/2003
