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);
|
}
|