In CMP, how does a type in the database convert to a type in the EJB, and vice versa? What is the usual practice in getting a Timestamp field from the database? java.util.Date or java.sql.Timestamp? As java.sql.Timestamp is the return class of ResultSet.getTimestamp(). Chu EJB 1.1 [ June 12, 2002: Message edited by: Chu Tan ]
Hi Chu, That will depend on your appserver. I use JBoss, and I know that I had to map Dates to java.sql.Timestamp. Check your appserver's documentation. There should be some sort of XML file that contains these mappings. HTH, /rick
subject: How does CMP convert db types to java types?