Dao object moved from dao packege to package by component in service folder
[portal.git] / portal-BE / src / main / java / org / onap / portal / service / roleFunction / FnRoleFunctionService.java
diff --git a/portal-BE/src/main/java/org/onap/portal/service/roleFunction/FnRoleFunctionService.java b/portal-BE/src/main/java/org/onap/portal/service/roleFunction/FnRoleFunctionService.java
new file mode 100644 (file)
index 0000000..a91dee8
--- /dev/null
@@ -0,0 +1,22 @@
+package org.onap.portal.service.roleFunction;
+
+import org.onap.portal.domain.db.fn.FnRoleFunction;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import java.util.List;
+
+@Service
+public class FnRoleFunctionService {
+
+    private final FnRoleFunctionDao fnRoleFunctionDao;
+
+    @Autowired
+    public FnRoleFunctionService(FnRoleFunctionDao fnRoleFunctionDao) {
+        this.fnRoleFunctionDao = fnRoleFunctionDao;
+    }
+
+    public List<FnRoleFunction> saveAll(List<FnRoleFunction> roleFunctions) {
+        return fnRoleFunctionDao.saveAll(roleFunctions);
+    }
+}