Skip to content

Auditing should support Java 8 Date & Time types [DATACMNS-411] #880

Closed
@spring-projects-issues

Description

@spring-projects-issues

Nick Williams opened DATACMNS-411 and commented

This may or may not be in the right project. I think it is, but it may need to be moved to Spring Data Commons.

Currently, fields annotated @CreatedDate and @LastModifiedDate can be Joda Time's DateTime or (I think) java.util.Date, java.util.Calendar, or java.sql.Timestamp. If it doesn't support these last three types, it should.

Auditing should also support the Java 8 Date & Time API. Fields modified with one of these two annotations should be able to be java.time.Instant, java.time.LocalDateTime, java.time.OffsetDateTime, and java.time.ZonedDateTime


Affects: 1.7 M1 (Codd), 1.6.3 (Babbage SR2)

Issue Links:

  • SPR-11259 Add Converter implementations that convert legacy Date instances into JDK 8 date/time types
    ("depends on")

  • DATAJPA-592 Auditing annotations not working when applied to methods

  • DATACMNS-307 Remove JodaTime dependency

Referenced from: commits 51b128f

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions