title: How can we add Event Listener for Native Query in Spring Boot 2.0?
body: <p>Currently, I have a scenario where I want to add event listener for executed query.</p>
  
  <p>My EntityListener</p>
  
  <pre><code>public class EntityListener implements PostInsertEventListener, PostUpdateEventListener, PostDeleteEventListener {
  </code></pre>
  
  <p>My repository</p>
  
  <pre><code>@Transactional
  @Modifying
  @Query(value = "UPDATE example e SET e.name = :name WHERE e.id = :id", nativeQuery = true)
      void testUpdatedQuery(@Param("name") String name, @Param("id") String id);
  </code></pre>
  
  <p>The event listener is working fine if I use methods of spring-data-jpa, but if I try the native query above I won't able to trigger the event. So, my question is how can I listen "native query" event ?</p>
  
  <p>Thanks</p>