This works for me. I have not tried the "date" field type in SQL. This
does not set the time part of the timestamp, only the date.
Database definition...
uts timestamp not null,
Bean field definition...
public java.sql.Date uts;
Initialization code in the ejbCreate() method...
setUts(new java.sql.Date(new java.util.Date().getTime()));
-----Original Message-----
From: Belli Andrea [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 23, 2001 4:56 AM
To: Jboss-User (E-mail)
Subject: [JBoss-user] Interbase 6 problem
I have a problem with data type date: in type mappings found in
standardjaws.xml the type mapping for DATE is java.sql.Date, so I use it in
the field of the entity bean.
The problem is that I receive an error about the composition of
PreparedStatement; I tried to change the Date type with a String and It
seems to function.
What is the problem? Andrea
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user