Uploaded image for project: 'OpenJPA'
  1. OpenJPA
  2. OPENJPA-2863

java.time.LocalDateTime in Oracle gets rounded to just 3 digits

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.1.2
    • Fix Version/s: 3.2.0
    • Component/s: jpa
    • Labels:
      None

      Description

      Having a column like
       

          @NotNull
          @Column(name = "awayUntil", nullable = false)
          private LocalDateTime awayUntil;
      

      which we set to

      awayUntil = LocalDate.of(2021, 4, 8).atTime(LocalTime.MAX);
      

      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).

        Attachments

          Activity

            People

            • Assignee:
              struberg Mark Struberg
              Reporter:
              Charlemagne Karl Grosse

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment