package ai.decompile.analysis.model.repository;

import ai.decompile.analysis.model.entity.StaticFunction;
import java.util.List;
import java.util.UUID;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

public interface StaticFunctionRepository extends JpaRepository<StaticFunction, UUID> {
  Page<StaticFunction> findByAnalysisId(UUID analysisId, Pageable pageable);

  List<StaticFunction> findByNameIgnoreCaseContainingAndAnalysisId(String name, UUID analysisId);

  List<StaticFunction> findByAddressIgnoreCaseContainingAndAnalysisId(
      String address, UUID analysisId);
}
