package pl.dmcs.mati.repository;

import jakarta.transaction.Transactional;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import pl.dmcs.mati.domain.AppCar;

import java.util.List;

@Transactional
@Repository
public interface AppCarRepository extends JpaRepository<AppCar, Long> {

    List<AppCar> findByModelName(String modelName);
    AppCar findById(long id);
}
