Java exception when using @CreationTimestamp or @UpdateTimestamp annotation in Embeddable

Description

When I use the @CreationTimestamp or @UpdateTimestamp in an embeddable java throws exception:

javax.persistence.PersistenceException: Unable to build Hibernate SessionFactory

…which is caused by:
Caused by: org.hibernate.cfg.NotYetImplementedException: Still need to wire in composite in-memory value generation

I’ve tried with both Hibernate ORM 5.1, 5.2, and 5.3 with the same results. Does anybody know if this is a reported bug or are those annotations not supported?

Environment

java

Status

Assignee

Unassigned

Reporter

DHIRAJ KUMAR

Fix versions

None

Labels

backPortable

None

Suitable for new contributors

Yes, likely

Requires Release Note

Affirmative

backportDecision

Undecided

Feedback Requested

2019/01/25

Worked in

triage-test-fix

Components

Affects versions

Priority

Major
Configure