Uploaded image for project: 'JDO'
  1. JDO
  2. JDO-749

Support for java.time types, and querying using associated methods

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • JDO 3.2
    • api, specification, tck
    • None

    Description

      Refer to an associated issue for JPA for what support should look like
      https://java.net/jira/browse/JPA_SPEC-63

      The methods that should be supported in queries would initially be
      LocalDateTime : getDayOfMonth, getMonth, getYear, getHour, getMinute, getSecond
      LocalTime : getHour, getMinute, getSecond
      LocalDate : getDayOfMonth, getMonth, getYear

      These would need to be part of JDOQL string-based, as well as the JDOQLTypedQuery (hence have equivalent Expression classes).

      Note that all of these are already implemented in DataNucleus, and there are JDOQLTypedQuery expression classes available.

      Timing of this simply depends on the JRE that the next release of JDO is targetted at, since this needs Java 8.

      Attachments

        1. JDO-749-patch.txt
          35 kB
          Michael Bouschen

        Issue Links

          Activity

            People

              mbo Michael Bouschen
              andyj Andy Jefferson
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: