package com.iqser.red.service.persistence.service.v1.api.shared.mongo.repository;

import java.util.List;

import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.data.mongodb.repository.Query;
import org.springframework.stereotype.Repository;

import com.iqser.red.service.persistence.service.v1.api.shared.mongo.document.ComponentLogEntryDocument;
import com.iqser.red.service.persistence.service.v1.api.shared.mongo.document.OldComponentLogEntryDocument;

@Repository
//@Deprecated(forRemoval = true)
public interface OldComponentLogEntryDocumentRepository extends MongoRepository<OldComponentLogEntryDocument, String> {

    @Query(value = "{ 'componentLogId': ?0 }")
    List<OldComponentLogEntryDocument> findByComponentLogId(String componentLogId);
}
