Implement Envers querying on top of SQL2011 versioned tables #7072
beikov
started this conversation in
Design Proposals
Replies: 1 comment 1 reply
-
Is that the right way to do it, or should it be more of a session-level setting like with filters? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The idea to support SQL2011 versioned tables, which came up on the JPA spec project in the past and the idea is interesting, because it could be a nice abstraction for Hibernate Envers to use.
I didn't give this too much thought yet, but I imagine the following:
('as' 'of' ('system time'|timestampExpression)|'versions' betweenPredicate)
The added benefit of Envers would be the possibility to fine tune columns/properties that should be audited as system versioning is an all or nothing thing. The
AuditQuery
API should be buildable on top of the new HQL syntax and there should be an SPI that Envers can plug into, to translate queries to the proper SQL.Beta Was this translation helpful? Give feedback.
All reactions