title: spring boot CrudRepository query passing object mysql
body: <p>I have the following code:</p>
  
  <pre><code>public interface UserRepository extends CrudRepository&lt;User, Integer&gt; {
  
  
  @Modifying
  @Transactional
  @Query(value = "INSERT INTO users(email, password, name) VALUES (?,?,?)", nativeQuery = true)
  void insertUserToUsers(String email, String password, String name);
  }
  </code></pre>
  
  <p>I don't want to pass the values, i want to pass a user object like this:</p>
  
  <pre><code>void insertUserToUsers(User user);
  </code></pre>