Bug 40 : java.util.Date ... actually returned as java.sql.Timestamp.
Priority 
Medium
Reported Version 
 
Logged By 
Rob
Status 
Fixed
Fixed Version 
0.9.6
Assigned To 
 
Product 
Ebean - core
Duplicate Of 
 
Created 
22/02/2008
Updated 
22/02/2008
Type 
Bug
 
Attachments 
No attachments

This was not picked up as java.sql.Timestamp actually extends java.util.Date so there is actually no error reported etc.

The issue is that I would really expect a real java.util.Date rather than a Timestamp noting that they are logically different (even though Timestamp extends java.util.Date).

Could cause issues with equality tests etc.

 
Rob 22 Feb 05:32
Fixed in 0.9.5b.

Issue being the ScalarTypeUtilDate ... change isJdbcNative from true to false. This causes the automatic conversion to occur.

Rob 22 Feb 05:34
Notes: ScalarType changes...

I am looking to change the ScalarType interface... to make them more functional in regards to JDBC reading from result sets and binding to preparedStatements.

woResponse

Upload a file