title: Pass DTO to service layer
body: <p>Is it not bad practice to pass DTO object to service layer? </p>
  
  <p>For now my service layer method look like this: </p>
  
  <pre><code>public save(MyEntity entity);
  </code></pre>
  
  <p>Mapping values from DTO to business entity (MyEntity) is done on presentation layer</p>
  
  <p>But I want to change method signature to this:</p>
  
  <pre><code>public save(MyEntityDTO dto, String author);
  </code></pre>
  
  <p>And after it mapping from DTO to business entity will occur on service layer. </p>
  
  <p><strong>EDIT:</strong> I want it because I need opened hibernate session when mapping from DTO to business object, so all changes on entity will be automatically flushed.</p>