'Hibernate Interceptor : entity intercepted on update
I am building REST API. And I have an entity and Interceptor. The Interceptor extends EmptyInterceptor(Hibernate). When I create a new object of the entity, the interceptor is called. However, when i update the object of the entity in the code, the interceptor is also called. But when I update the object of the entity using put request, the interceptor is not called and the entity is updated in the database. Any ideas how I can solve this? Thanks in advance.
Solution 1:[1]
I suppose, you could use onFlashDirty
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Dimm |
