package com.dbnt.faisp.main.faStatistics.crackdownsStatus.repository;

import com.dbnt.faisp.main.faStatistics.crackdownsStatus.model.fishingBoat.FishingBoat;
import com.dbnt.faisp.main.faStatistics.crackdownsStatus.model.fishingBoat.FishingBoatVersion;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Optional;

public interface FishingBoatVersionRepository extends JpaRepository<FishingBoatVersion, FishingBoatVersion.FishingBoatVersionId> {
  Optional<FishingBoatVersion> findTop1ByFbKeyOrderByVersionNoDesc(Integer fbKey);
}
