Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How does CMP convert db types to java types?

 
Justin Chu
Ranch Hand
Posts: 209
1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Rick Salsa
Ranch Hand
Posts: 173
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic