spring-data-envers

Hibernate Envers how to get the log history properly?

巧了我就是萌 提交于 2021-02-08 10:13:11
问题 i create a table audit log using Hibernate Envers, and i use Spring Data Envers as my library, when i save/update/delete it successfully saved the log in my autid_log table, but when i want to retrive the log data, i got infinite loop of error, how can i do this properly? here is my code : Here is my controller : @GetMapping("/getPartnerRelationshipLog/{partnerId}") public ResponseEntity<?> getPartnerRelationshipLog(@PathVariable Long partnerId) { // Long id = partner.getId(); Revisions

Envers + MYSQL + List<String> = SQLSyntaxErrorException: Specified key was too long;

孤街浪徒 提交于 2019-12-11 16:00:49
问题 I am extending an existing application with Audit support using Envers. I annotated all @Entity classes and I got a bunch of Exception traces. When taking a look at them, it seems that they all relate to attribute definitions that have the following form protected List<String> testActivities; @ElementCollection protected List<String> getTestActivities() { return testActivities; } public void setTestActivities(List<String> testActivities) { this.testActivities = FXCollections.observableList