package com.epam.ta.reportportal.dao;

import com.epam.ta.reportportal.entity.statistics.StatisticsField;

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

	void deleteByName(String name);
}

@@ -98,16 +98,126 @@
 csField;
+%0Aimport org.springframework.data.jpa.repository.Query;%0Aimport org.springframework.data.repository.query.Param;
 %0A%0A/**%0A *
@@ -391,16 +391,73 @@
 ong%3E %7B%0A%0A
+%09@Query(%22DELETE FROM statistics_field WHERE name=:name%22)%0A
 %09void de
@@ -467,16 +467,31 @@
 eByName(
+@Param(%22name%22) 
 String n

Add native query