OWL ITS + 탐지시스템(인터넷 진흥원)
이민희
2022-01-13 ebfd37816a332308519b30af5bfb017c5052be69
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package kr.wisestone.owl.repository;
 
import com.amazonaws.services.route53.model.transform.ListGeoLocationsResultStaxUnmarshaller;
import kr.wisestone.owl.domain.Project;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.repository.query.Param;
import java.util.List;
 
public interface ProjectRepository extends JpaRepository<Project, Long> {
    Project findByProjectKeyAndWorkspaceId(@Param("projectKey") String projectKey, @Param("workspaceId") Long workspaceId);
 
    Project findByNameAndWorkspaceId(@Param("name") String name, @Param("workspaceId") Long workspaceId);
 
    Project findByNameAndWorkspaceIdAndIdNot(@Param("name") String name, @Param("workspaceId") Long workspaceId, @Param("id") Long id);
 
    List<Project> findByWorkspaceId(@Param("workspaceId") Long workspaceId);
 
    Project findByWorkspaceIdAndDefaultYn(@Param("workspaceId") Long workspaceId, @Param("defaultYn") Boolean defaultYn);
}