package space.nstart.pcp.pcp_satellite_catalog_service.repository

import org.springframework.data.jpa.repository.JpaRepository
import space.nstart.pcp.pcp_satellite_catalog_service.entity.SatelliteGroupSatelliteEntity
import space.nstart.pcp.pcp_satellite_catalog_service.entity.SatelliteGroupSatelliteId

interface SatelliteGroupSatelliteRepository : JpaRepository<SatelliteGroupSatelliteEntity, SatelliteGroupSatelliteId> {
    fun findAllByGroupIdInOrderByGroupIdAscSatelliteIdAsc(groupIds: Collection<Long>): List<SatelliteGroupSatelliteEntity>
    fun deleteAllByGroupId(groupId: Long)
}
