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

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.1.2
    • 3.2.0
    • jpa
    • 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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            struberg Mark Struberg
            Charlemagne Karl Grosse
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment