I have a table in oracle(8i) which contains a column with type DATE. If I want to insert something in this column through CMP, and I use java.sql.Timestamp for this column, it works perfectly. But if I retrieve the value of this field through CMP, it gives the Timestamp object whose format is quite different from the regular Timestamp object.
The timestamp object returned from the CMP is : 4-04-10 10:00:00.0 And the timestamp object created from system time, - new java.sql.Timestamp( System.currentTimeMillis() ) is 2004-04-12 17:26:24.03 Plus, if I try to get the milliseconds from the Timestamp object returned from the CMP, it prints a large negative value. In my application, I want to compare the timestamp object created from the current system time with the one returned from the CMP bean. What should be the solution to this? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3830182#3830182 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3830182 ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
