gs-accessing-data-mongodb icon indicating copy to clipboard operation
gs-accessing-data-mongodb copied to clipboard

LocalDate handling is not working well

Open puskai opened this issue 6 years ago • 0 comments

I have added two fields to the complete version:

public LocalDate birthdate;
public TreeMap<LocalDate, Double> dateValues;

The customer gets saved like this:

{ "_id" : ObjectId("5c0918435deea55a9522cecd"), "firstName" : "Oliver August", "lastName" : "Matthews", "birthdate" : ISODate("2018-12-05T23:00:00.000Z"), "dateValues" : { "2018-12-05" : 43.0, "2018-12-06" : 42.0 }, "_class" : "hello.Customer" }

After that reading is not working any more: No converter found capable of converting from type [java.lang.String] to type [java.time.LocalDate]

You can see it here: https://github.com/puskai/gs-accessing-data-mongodb

puskai avatar Dec 06 '18 13:12 puskai