package kr.wisestone.owl.repository; import kr.wisestone.owl.domain.Workflow; import kr.wisestone.owl.domain.enumType.ProjectType; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.repository.query.Param; import java.util.List; public interface WorkflowRepository extends JpaRepository { Workflow findByWorkspaceIdAndProjectType(@Param("workspaceId") Long workspaceId, @Param("projectType") ProjectType projectType); Workflow findByNameAndWorkspaceId(@Param("name") String name, @Param("workspaceId") Long workspaceId); Workflow findByNameAndWorkspaceIdAndIdNot(@Param("name") String name, @Param("workspaceId") Long workspaceId, @Param("id") Long id); List findByWorkspaceId(@Param("workspaceId") Long workspaceId); }