[ https://issues.apache.org/jira/browse/OPENJPA-2863?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mark Struberg resolved OPENJPA-2863. ------------------------------------ Fix Version/s: 3.1.3 Resolution: Fixed > 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 > Fix For: 3.1.3 > > > 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)