package ai.decompile.analysis.model.repository;

import ai.decompile.analysis.model.entity.LibrarySymbol;
import java.util.Optional;
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 LibrarySymbolRepository extends JpaRepository<LibrarySymbol, UUID> {
  Page<LibrarySymbol> findByLibraryIdOrderByOrdinalAsc(UUID libraryId, Pageable pageable);

  Optional<LibrarySymbol> findByLibraryIdAndOrdinal(UUID libraryId, int ordinal);
}
