This content has been marked as final.
Show 2 replies
-
1. Re: java.rmi.ServerException: Store failed
reini_r Sep 13, 2001 1:50 PM (in response to reini_r)As i figured out this only happens if i use a DATE type in database.
is there any hint of how to use DATE - types within jboss and CMP ??? -
2. Re: java.rmi.ServerException: Store failed
banigreyling Sep 14, 2001 8:15 AM (in response to reini_r)Hi
I wrote a generic static method to convert between java.util.Date and java.sql.Timestamp. The fields in my CMP Bean is Timestamp, but all my method signatures use java.util.Date. You are safe with this way provided you take nano seconds into account while converting, and that your stored date resolution in the DB is not higher than milliseconds,i.e. if you don't use getdate(), sysdate or the like or always use JBoss to write/update your DB, you'r fine .
Anyone have a more elegant solution?