Declare the MySQL column type as 'datetime', not 'timestamp'. > -----Original Message----- > From: A mailing list for Enterprise JavaBeans development > [mailto:[EMAIL PROTECTED] Behalf Of Filip Polsakiewicz > Sent: Tuesday, 1 July 2003 10:11 p.m. > To: [EMAIL PROTECTED] > Subject: problems with java.sql.Timestamp and MySQL > > > Hi, > i have the following problem: > > I use java.sql.Timestamp to store Date values in my DB since i > need the time > component too. When I create a new entity (using CMP) i found that MySQL > always replaces my timestamp with the current time. Can anybody > tell me what > is going wrong here. > > Thanks, Filip > > ================================================================== > ========= > To unsubscribe, send email to [EMAIL PROTECTED] and include > in the body > of the message "signoff EJB-INTEREST". For general help, send email to > [EMAIL PROTECTED] and include in the body of the message "help". > >
=========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff EJB-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
