Skip to content

Auditing handler logic no longer supports java.time.OffsetDateTime? [DATACMNS-1217] #1656

@spring-projects-issues

Description

@spring-projects-issues

Vojtech Toman opened DATACMNS-1217 and commented

We use many entity types that contain:

@CreatedDate
private OffsetDateTime created;

This works fine with spring-data 1.x but is no longer supported in spring-data-2.x ("Invalid date type for member ..."). After some debugging, it seems to me that it's because the method DateConvertingAuditableBeanWrapper.getDateValueToSet() no longer attempts the conversion from java.util.Calendar to the target type (for which there is a built-in converter in DateTimeConverters).

Is this a deliberate change, or an oversight? If the former, what is the recommended way to add support for java.util.OffsetDateTime in the audited fields?


Affects: 2.0.1 (Kay SR1)

1 votes, 2 watchers

Metadata

Metadata

Assignees

Labels

status: invalidAn issue that we don't feel is valid

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions