I try to add the following code to a spring data jpa repository:
@Query(\"insert into commit_activity_link (commit_id, activity_id) VALUES (?1, ?2)\") vo
I had to add nativeQuery = true to @Query
nativeQuery = true
@Query
@Query(value = "insert into commit_activity_link (commit_id, activity_id) VALUES (?1, ?2)", nativeQuery = true)