title: How to insert into db in spring-data?
body: <p>I want to make a request that inserts data into my database. The table has 4 columns: ID_DOCUMENT (PK), ID_TASK, DESCRIPTION, FILEPATH</p>
  
  <p><strong>Entity</strong></p>
  
  <pre><code>... 
  @Column(name = "ID_TASK")
  private Long idTask;
  
  
  @Column(name = "DESCRIPTION")
  private String description;
  
  @Column(name = "FILEPATH")
  private String filepath;
  ...
  </code></pre>
  
  <p><strong>Repository</strong></p>
  
  <pre><code>@Modifying
  @Query("insert into TaskDocumentEntity c (c.idTask, c.description, c.filepath) values (:id,:description,:filepath)")
  public void insertDocumentByTaskId(@Param("id") Long id,@Param("description") String description,@Param("filepath") String filepath);
  </code></pre>
  
  <p><strong>Controller</strong></p>
  
  <pre><code>@RequestMapping(value = "/services/tasks/addDocument", method = RequestMethod.POST)
  @ResponseBody
  public void set(@RequestParam("idTask") Long idTask,@RequestParam("description") String description,@RequestParam("filepath") String filepath){
  
      //TaskDocumentEntity document = new TaskDocumentEntity();
      taskDocumentRepository.insertDocumentByTaskId(idTask,descriere,filepath);
  }
  </code></pre>
  
  <p>When I run my test, I get this error:
   <em>Caused by: org.hibernate.hql.ast.QuerySyntaxException: expecting OPEN, found 'c' near line 1, column 32 [insert into TaskDocumentEntity c   (c.idTask, c.descriere, c.filepath) values (:id,:descriere,:filepath)]</em>
      I tried to remove the alias c, and still doesn`t work.</p>