I need to log not only modifications, but every access to Entity. I've looked into EntityListeners and Envers but couldn't find anything usefull.
Asked
Active
Viewed 64 times
0
-
1You need to implement it yourself. – Alan Hay Dec 17 '20 at 14:21
-
1You can use AOP (Aspect Oriented Programming) to do this. Basically: an annotation which will add your logging code everywhere in the entities. This is quite quite simple to do with Spring. – Guillaume F. Dec 17 '20 at 18:03