Implement DMaaP message handling from policy
[dcaegen2/services/son-handler.git] / src / main / java / org / onap / dcaegen2 / services / sonhms / dao / PerformanceNotificationsRepository.java
index c83956f..d45d7de 100644 (file)
@@ -28,11 +28,10 @@ import org.springframework.stereotype.Repository;
 
 @Repository
 public interface PerformanceNotificationsRepository extends CrudRepository<PerformanceNotifications, String> {
-       
-       @Query(nativeQuery = true,
-            value = "DELETE FROM performance_notifications "
-                    + "WHERE notification = ( SELECT notification FROM performance_notifications ORDER BY "
-                    + "created_at FOR UPDATE SKIP LOCKED LIMIT 1 ) RETURNING notification;")
+
+    @Query(nativeQuery = true, value = "DELETE FROM performance_notifications "
+            + "WHERE notification = ( SELECT notification FROM performance_notifications ORDER BY "
+            + "created_at FOR UPDATE SKIP LOCKED LIMIT 1 ) RETURNING notification;")
 
     public String getPerformanceNotificationFromQueue();