I have a class `DocumentData`:

```
@Data //Lombok
public class DocumentData {

    private Long documentId;
    private Long binderId;
    private String containerCode;
    private String barcode;
    private Long clientId;

}

```

I have my Repository:

```
public interface DocumentArchiveRepository extends JpaRepository<DocumentArchive, Long> {

    String QUERY_GET_DOCUMENT_DATA = "SELECT DISTINCT d.id_document, pd.id_binder, s.container_code, d.barcode, k.id_client FROM table1 pd \n"
            + "JOIN table2 d ON pd.id_document = d.id_cokument\n"
            + "JOIN table3 s ON s.id = pd.id_binder \n"
            + "JOIN table4 k ON k.id_document = d.id_document\n"
            + "WHERE pd.id_position = 10122 AND d.id_document in :documentIds";

    @Query(value = QUERY_GET_DOCUMENT_DATA, nativeQuery = true)
    List<DocumentData> getDocumentData(@Param("documentIds") List<Long> documentIds);

```

When I want to get data:

```
List<DocumentData> documentData = repository.getDocumentData(documentIds);

```

I get the following error:

> 
> org.springframework.core.convert.ConverterNotFoundException: No
>  converter found capable of converting from type
>  [org.springframework.data.jpa.repository.query.AbstractJpaQuery$TupleConverter$TupleBackedMap]
>  to type [pl.ultimo.retention.archive.dto.DocumentData] at
>  org.springframework.core.convert.support.GenericConversionService.handleConverterNotFound(GenericConversionService.java:321)
>  ~[spring-core-5.1.4.RELEASE.jar:5.1.4.RELEASE] at
>  org.springframework.core.convert.support.GenericConversionService.convert(GenericConversionService.java:194)
>  ~[spring-core-5.1.4.RELEASE.jar:5.1.4.RELEASE] at
>  org.springframework.core.convert.support.GenericConversionService.convert(GenericConversionService.java:174)
>  ~[spring-core-5.1.4.RELEASE.jar:5.1.4.RELEASE]
> 
> 
> 

Should I change my code to `List<Object>` and the anually map results to `DocumentData`? Or maybe there is a better solution?