LocalDate value changes after fetching the row from the database

Description

This issue was first reported on StackOverflow and I could also replicate it in my GitHub repository.

Basically, we have an entity like this:

and runt his test:

The assert throws:

java.lang.AssertionError: expected:<0001-01-01> but was:<0000-12-29>

So the object doesn't have the same value that was used prior to being persisted.

Test case will be attached after I know the Jira number of this issue.

Environment

None

Assignee

Andrea Boriero

Reporter

Vlad Mihalcea

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Affects versions

Priority

Major
Configure