package com.epam.ta.reportportal.dao;

import com.epam.ta.reportportal.entity.statistics.StatisticsField;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

/**
 * @author <a href="mailto:ihar_kahadouski@epam.com">Ihar Kahadouski</a>
 */
public interface StatisticsFieldRepository extends ReportPortalRepository<StatisticsField, Long> {

	@Query("DELETE FROM statistics_field WHERE name=:name")
	void deleteByName(@Param("name") String name);
}

@@ -399,16 +399,24 @@
 %09@Query(
+value = 
 %22DELETE 
@@ -454,16 +454,36 @@
 e=:name%22
+, nativeQuery = true
 )%0A%09void 

Add native query