package com.realnet.DynamicDashbard.repositories;

import java.util.List;
import java.util.Optional;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import com.realnet.DynamicDashbard.entities.ChartType;

@Repository
public interface ChartTypeRepository extends JpaRepository<ChartType, Long> {

	List<ChartType> findByIsActiveTrue();

	Optional<ChartType> findByName(String name);

}