package com.example.FinanceTracker.Repo;

import java.util.List;

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

import com.example.FinanceTracker.Models.Categories;

@Repository
public interface CategoriesRepo extends JpaRepository<Categories, Integer>{


    @Query(value = "SELECT category_name FROM categories", nativeQuery=true)
    List<String> findAllCategoryNames();

}
