My database has a column of type DATETIME. What type of Java variable do I use in the EJB?
I am not sure why you cannot format in ejbCreate. I assume this is some sort of CMP issue. However, we experienced a similar issue where we needed to reference a database generated sequence in the creation of the entity bean, and the CMP process did not give us access to the generated number in ejbCreate. In this case, we used the ejbPostCreate method which is called directly after ejbCreate and I believe is specifically intended to support operations like yours.
[OK, but the proper type is java.sql.Timestamp, right? -Alex]