Is there a way to pass the whole sql statement or a part of it to @Query annotation?
@Modifying
@Query(value = "INSERT INTO my_table :query", nativeQuery = true)
@Transactional
void test(@Param("query") String query);
Is there a way to pass the whole sql statement or a part of it to @Query annotation?
@Modifying
@Query(value = "INSERT INTO my_table :query", nativeQuery = true)
@Transactional
void test(@Param("query") String query);