Details
-
New Feature
-
Status: Open
-
Major
-
Resolution: Unresolved
-
1.7.2
-
None
-
None
-
Deltaspike 1.7.2. CDI 1.1 Wildfly AS 9.0.2.Final
Description
I'm using the JPA @EntityListeners(AuditEntityListener.class) and the audit functionality of Deltaspike Data (@CreatedOn, @ModifiedOn and @ModifiedBy annotations) on an entity bean with the difference that I have a custom implementation of java.time.ChronoLocalDateTime which converts any LocalDateTime + ZoneOffset OR a ZonedDateTime to be the UTC date & time.
Is there a way to implement my own org.apache.deltaspike.data.impl.audit.PrePersistAuditListener and org.apache.deltaspike.data.impl.audit.PreUpdateAuditListener and use them to create the instance of UTCDateTime required by he fields marked with @InsertedOn and @ModiefiedOn?
See this SO Question and the discussion on this mail thread