Uploaded image for project: 'DeltaSpike'
  1. DeltaSpike
  2. DELTASPIKE-1229

Allow the use of @Alternative to implement a custom TimestampsProvider

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.7.2
    • None
    • Data-Module, JPA-Module
    • 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

      Attachments

        Activity

          People

            johndament John D. Ament
            nicoschl@gmail.com Nico Schlebusch
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: