Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasLohoff committed Apr 9, 2021
1 parent 1de0112 commit 05386b5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,6 @@ Auditing is enabled by default and can be disabled by setting `spring.jpa.proper

### Enabling envers mid-project

If envers is enabled mid-way and there is already data this can result in errors when querying audit data. To fix this, a revision with revisiontype `0` (created) has to be manually inserted for each existing entity into the respective audit table.
If envers is enabled mid-way and there is already data this can result in errors when querying audit data. To fix this, a revision with revision type `0` (created) has to be manually inserted for each existing entity into the respective audit table.

See https://discourse.hibernate.org/t/safe-envers-queries-when-the-audit-history-is-incomplete/771.
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,6 @@ static class QueryResult<T> {
metadata = data[1];
revisionType = convertRevisionType((RevisionType) data[2]);
changedFields = data[3];
// String[] changedFieldsArray = (String[]) data[3];
// if (changedFieldsArray) {
// changedFields = Arrays.asList(data[3])
// }
}

RevisionMetadata<?> createRevisionMetadata() {
Expand Down

0 comments on commit 05386b5

Please sign in to comment.