Answer the question
In order to leave comments, you need to log in
How to determine that a new record has been added to the table?
How to determine that a new record has been added to the table?
Tried through the implementation of the PostInsertEventListener interface, but for some reason it does not work. Perhaps it will work if new records are added via Hibernate, but in my situation, records are added by a third-party program.
Answer the question
In order to leave comments, you need to log in
As you might guess, any hibera tools can only track actions performed through it.
If the database is changed outside, then only
- we create a trigger for adding
- we already prescribe the desired actions in it - from some modifications of the database (if you need to manipulate only the database) to, for example, calling the REST URL - if you need to pull the backend .
Unfortunately, the database is not specified, an approximate solution was described in applicability to postgres, but I think that in any other database there is something similar.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question