title: Convert DTO to Domain models and back with lambda
body: <p>I am new in Java so I want ask you if exist some pretty solution by lambda which convert One type object to another? </p>
  
  <p>I had function in service:</p>
  
  <pre><code>public List&lt;MyObjectDto&gt; findAll() {
      List&lt;MyObject&gt; list = repository.findAll();
      return list.someMagicToConvertToDtoObjectsInList();
  }
  </code></pre>
  
  <p>Any ideas for that?</p>