i noticed that the hibernate PreInsertEventListener
is not executed, when data is persisted with spring data REST. Any reason for that except a bug?
The listener is executed, when data is persisted through @Controller -> @Service -> @Repository
.
Asked
Active
Viewed 46 times
0

george
- 19
- 7
-
can put some code here to understand that? – Sonu patel Dec 16 '19 at 07:37
-
is it your case? [insert and update action](https://stackoverflow.com/a/30064400/7214142) – Yuriy Tsarkov Dec 16 '19 at 08:17
-
thx, i switched to org.hibernate.Interceptor which is called – george Dec 18 '19 at 07:27