Skip to content

RevisionMetadata cannot handle RevisionTimestamp in TIMESTAMP format #135

Description

@stefanzilske

Hi folks,

I started using Hibernate Envers natively and created my own RevisonInfo and REVINFO table. I used TIMESTAMP as data type for the RevisionTimestamp and mapped it to java.util.Date, which is fine for Hibernate.

Now we are starting to use spring-data-envers and run into the following issue:

RevisionMetadata expects the RevisionTimestamp to be either an Instant, LocalDateTime Long, while Hibernate supports only Long, java.util.Date or java.sql.Date.

I could switch to long, but I would prefer to keep a readable format in the database.

Is there any way out of this? I wonder why spring-data-envers, which wraps Hibernate Envers, is supporting different types.

Cheers,
Stefan

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions