Uploaded image for project: 'Spring Data JPA'
  1. Spring Data JPA
  2. DATAJPA-1803

EnableJpaAuditing: JavaDoc references joda.time instead of java.time

    XMLWordPrintable

    Details

      Description

      The JavaDoc for EnableJpaAuditing#dateTimeProviderRef reads:

      /**
       * Configures a {@link DateTimeProvider} bean name that allows customizing the {@link org.joda.time.DateTime} to be
       * used for setting creation and modification dates.
       *
       * @return
       */

      which is not correct.

      Instead of

      org.joda.time.DateTime

      it should be

      java.time.temporal.TemporalAccessor

      See DateTimeProvider:

      public interface DateTimeProvider {
      
       /**
       * Returns the current time to be used as modification or creation date.
       *
       * @return
       */
       Optional<TemporalAccessor> getNow();
      }

        Attachments

          Activity

            People

            Assignee:
            schauder Jens Schauder
            Reporter:
            schrobe Malte Mauelshagen
            Last updater:
            Spring Issues Spring Issues
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: