Update UI automatically when change in database

Hi, I want to fire a custom event, whenever there is written a value to the database in order to change value in certain fields without reloading page. I cant really find any documentation on this except for firing events between views.

Where should the event come from? The repository?

Yeah, that was the idea

Have a look at spring domain events Spring Data JPA - Publishing Domain Events When Changing an Entity