title: Spring data JDBC, can I get a return value as an entity in a custom insert query?
body: <pre><code>@Repository
  public interface RoomRepository extends CrudRepository&lt;RoomEntity, Long&gt; {
      @Override
      List&lt;RoomEntity&gt; findAll();
  
      @Modifying
      @Query("INSERT INTO room VALUES(:id, :name)")
      RoomEntity insert(@Param("id") String uuid, @Param("name") String name);
  }
  </code></pre>
  
  <p>I made an insert custom query to use the default key for the UUID.
  Is there any way for custom queries to receive result values as entities?
  The above code doesn't work. The framework is returning an int.</p>