title: ModelMapper, mapping list of Entites to List of DTO objects
body: <p>I am writing simple blog web application using Spring MVC framework. I am willing to add <code>DTO</code> layer to my app.</p>
  
  <p>I decided to use <a href="http://modelmapper.org/" rel="noreferrer">ModelMapper</a> framework for conversion from <code>Entity</code> objects to <code>DTO</code> objects used in my views.</p>
  
  <p>I have just one problem.
  On my main page, I am showing a list of posts on my blog. In my view, it's just list of <code>Post</code> (Entity) objects. I want to change it to pass a list of <code>PostDTO</code> objects to my view. Is there any way to map <code>List</code> of <code>Post</code> objects to <code>List</code> of <code>PostDTO</code> object with single method call?
  I was thinking about writing <a href="http://modelmapper.org/user-manual/converters/" rel="noreferrer">converter</a> that will convert this but I am not sure it's a good way to do it.</p>
  
  <p>Also, I am using <code>Lists</code> of <code>Entities</code> in few more places like administrative panel or comment below every Post on my page.</p>
  
  <p>Link to code of my app on GitHub repository: <a href="https://github.com/Gromo13/personalBlog/tree/dto" rel="noreferrer">repository</a></p>