package com.realnet.DynamicDashbard.repositories;

import java.util.List;

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

import com.realnet.DynamicDashbard.entities.ComponentProperty;
import com.realnet.DynamicDashbard.entities.UiComponent;

@Repository
public interface ComponentPropertyRepository extends JpaRepository<ComponentProperty, Long> {
    List<ComponentProperty> findByComponent(UiComponent component);
    List<ComponentProperty> findByComponentAndPropertyName(UiComponent component, String propertyName);
}