Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DateTimeHandling Incorrect in MongoDBSession::getObject(doc: DBObject, column: AbstractColumn<*, *, *>) #15

Open
cojo opened this issue Apr 19, 2016 · 0 comments

Comments

@cojo
Copy link

cojo commented Apr 19, 2016

Hi,

While using this package we've run into an issue with the dateTime() / DATE_TIME column type in MongoDBSession -
while getObject(doc, schema) on line 489 properly handles DATE_TIME column type instantiation from the string pulled from Mongo, getObject(doc: DBObject, column: AbstractColumn<*, *, *>) on line 532 does not, and instead just does a basic doc.get which will fail for the DATE_TIME columns with something like:

java.lang.IllegalArgumentException: Can not set final org.joda.time.DateTime field expirationDate to java.lang.String

Let me know if you need further details or if there's anything else I can do to help.
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant