[
https://issues.apache.org/jira/browse/OPENJPA-2863?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mark Struberg updated OPENJPA-2863:
-----------------------------------
Summary: java.time.LocalDateTime in Oracle gets rounded to just 3 digits
(was: java.time.LocalDateTime at LocalTime.MAX in Oracle gets rounded to the
next day atStartOfDay)
> java.time.LocalDateTime in Oracle gets rounded to just 3 digits
> ---------------------------------------------------------------
>
> Key: OPENJPA-2863
> URL: https://issues.apache.org/jira/browse/OPENJPA-2863
> Project: OpenJPA
> Issue Type: Bug
> Components: jpa
> Affects Versions: 3.1.2
> Reporter: Karl Grosse
> Assignee: Mark Struberg
> Priority: Major
>
> Having a column like
>
> {code:java}
> @NotNull
> @Column(name = "awayUntil", nullable = false)
> private LocalDateTime awayUntil;
> {code}
> which we set to
> {code:java}
> awayUntil = LocalDate.of(2021, 4, 8).atTime(LocalTime.MAX);
> {code}
> gets somehow rounded to 2021-4-9 00:00:00,000000 after persisting into the
> Oracle DB.
> The type of the column in Oracle is Timestamp(6).
--
This message was sent by Atlassian Jira
(v8.3.4#803005)