title: Controller is unable to map the object and bring the list result
body: <p>This is my Controller, I want to list of the books but it returns the error below:</p>
  <blockquote>
  <p>book is not mapped</p>
  </blockquote>
  <pre class="lang-java prettyprint-override"><code>@RestController
  public class BookController {
  
      @PersistenceContext
      private EntityManager manager;
  
  
      @Transactional
      @PostMapping(&quot;/books&quot;)
      public String save(@RequestBody @Valid BookInDto request){
  
          Book book = request.toModel(manager);
          manager.persist(book);
          return book.toString();
      }
  
      @GetMapping(&quot;/books&quot;)
      @Transactional(readOnly = true)
      public List&lt;BookOutDto&gt; bookList(){
          return manager.createQuery(&quot;from book&quot;, Book.class)
                  .getResultStream()
                  .map(BookOutDto::new)
                  .collect(Collectors.toList());
      }
  }
  </code></pre>