Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

11
  • My date is stored as a serializable LocalDate object in my model, and as a timestamp without time zone in my table.
    – Kpo
    Commented Apr 17, 2018 at 13:05
  • Actually, the evidence suggests that it is probably a VARCHAR in the database! And that the VARCHAR contains a formatted date / time string. Either way, the hibernate mapping is incorrectly attempting to deserialize some data that wasn't created by serialization.
    – Stephen C
    Commented Apr 17, 2018 at 13:07
  • Could it be because I filled the row manually? We don't have an UI yet to fill a form so they told me to manually insert datas in the table to do my tests.
    – Kpo
    Commented Apr 17, 2018 at 13:13
  • That is plausible. But IMO the real problem is in the mapping. Storing dates in the database as serialized Java objects is a bad idea.
    – Stephen C
    Commented Apr 17, 2018 at 14:30
  • In which form should we store them then?
    – Kpo
    Commented Apr 17, 2018 at 15:04