Mapping your Entities to DTO’s Using Java 8 Lambda expressions
Post showing how to clean and shorten your code using Java 8's lambda's expressions and DTO-Entities mapping:
We all facing the cluttered overhead code when we need to convert our DTO’S to Entities(Hibernate Entities, etc..) and backwards. In my example ill demonstrate how the code getting much shorter with Java 8. Let’s create the Target DTO: ...
Continue reading at: http://www.idanfridman.com/mapping-your-entities-to-dtos-using-java-8-lambda-expressions