j256 / ormlite-android

ORMLite Android functionality used in conjunction with ormlite-core
http://ormlite.com/
ISC License
1.59k stars 367 forks source link

java.sql.Date versus java.util.Date #51

Closed j256 closed 8 years ago

j256 commented 8 years ago

Is storing and retrieving of java.sql.Date broken?

http://stackoverflow.com/questions/32536482/i-cant-retrieve-data-from-sqlite-db-using-ormlite

j256 commented 8 years ago

Yes it is under Android. This is a problem with Dates in general. Maybe a better solution would be to add valueToString type methods and then some sort of mustBeStoredAsString() method to the persisters that can be adjusted by the DatabaseType.

j256 commented 8 years ago

This has been fixed.