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

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

    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

          People

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

            Dates

              Created:
              Updated:
              Resolved: