Skip to content

LocalDate handling is not working well #23

@puskai

Description

@puskai

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions