title: How to fix convertion error in Nativequery in Spring-boot
body: <p>I wrote this query as a negative query and asked the database for a select statement,
  but I did not receive data to the List&lt;MCategory&gt;</p>
  <pre><code>public interface NoteRepository extends JpaRepository&lt;PrivateNote, Long&gt; {
  
      @Query(nativeQuery = true, value =
              &quot;SELECT p.mCategory &quot; +
              &quot;FROM privatenote as p &quot; +
              &quot;WHERE p.userId = :userId AND p.sharing = :sharing &quot; +
              &quot;GROUP BY p.mCategory&quot;
          )
      List&lt;MCateogry&gt; findGroupBymCategory(@Param(&quot;userId&quot;) Long userId, @Param(&quot;sharing&quot;) 
      boolean sharing);   
  
  }
  </code></pre>
  <p><strong>The following error occurred</strong></p>
  <p>org.springframework.core.convert.ConverterNotFoundException: No converter found capable of converting from type [org.springframework.data.jpa.repository.query.AbstractJpaQuery$TupleConverter$TupleBackedMap] to type [com.daehwan.notebook.model.PrivateNote]</p>
  <p><strong>Here are the entities</strong></p>
  <pre><code>@Data
  @NoArgsConstructor
  @AllArgsConstructor
  public class MCategory{
      
      private String mCategory;   
      
  }
  </code></pre>
  <pre><code>@Entity
  @Data
  @NoArgsConstructor
  @AllArgsConstructor
  public class PrivateNote {
      
      @Id
      @GeneratedValue(strategy = GenerationType.IDENTITY)
      private Long id;
      
      @Column(nullable = false, length = 100)
      private String title;
      
      @JsonProperty(&quot;m_category&quot;)
      @Column(nullable = false, length = 30)
      private String mCategory;
      
      @JsonProperty(&quot;s_category&quot;)
      @Column(nullable = false, length = 30)
      private String sCategory;
      
      @Lob
      private String content;
      
      @Column(nullable = false)
      private boolean sharing;
      
      @ManyToOne(fetch = FetchType.EAGER)
      @JoinColumn(name = &quot;userId&quot;)
      private User user;
      
      @CreationTimestamp
      private Timestamp createDate;
      
      private Timestamp updateDate;
  }
  </code></pre>
  <p>How do I change to receive the data?</p>