Allow RevisionTimestamp to be of type java.time.LocalDateTime

Description

Currently the RevisionTimestamp must be of type long, Long, java.util.Date or java.sql.Date. But - following Hibernate's general support for Java 8 date and time types introduced in Hibernate 5 (see HHH-8844) - it would be great to have RevisionTimestamp support java.time.LocalDateTime as possible type as well.

Environment

None

Activity

Show:
Marcelo Glasberg
June 10, 2016, 12:35 PM
Daniele Renda
April 25, 2018, 8:54 AM

I'm wondering if this fix accept also java.time.Instant. According to several best practice I found I decided to use Instant to manage dates in my Spring Boot application (JHipster to the same). All dates are stored in UTC in the database.

Does this fix permit to use Instant as well?

Thanks

Chris Cranford
April 25, 2018, 1:11 PM

, no but we can certainly consider it. I've added HHH-12518.

Daniele Renda
April 25, 2018, 1:18 PM

Thank you very much

Steve Ebersole
December 6, 2018, 3:43 PM

Preparing Alpha1 release

Assignee

Chris Cranford

Reporter

Holger Stenzhorn

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

Affirmative

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure