title: How to work correctly with Hibernate and Hibernate tools for eclipse?
body: <p>I just started experimenting with Hibernate. My current approach for working with Hibernate is as follows:</p>
  
  <ol>
  <li><p>Write cfg.xml and reveng.cfg.xml</p></li>
  <li><p>Use Hibernate tools for eclipse to generate POJO and hbm.xml files.</p></li>
  <li><p>Write my own DAO classes. In the methods, add stored procedures calls to these classes using native SQL.</p></li>
  </ol>
  
  <p>I feel a bit uncomfortable regarding this approach. Writing DAO classes is just a repetitive task that is always the same. The only changes are the names and parameters of the stored procedures. This can be automated by looking into the database and looking at the stored procedures inside.
   Generaly I feel there is a lot of code repetition smell.</p>
  
  <p>I tried generating DAO classes using Hiberante tools. It is not satisfactory as well. The classes contain code that I don't need, and lack the stored procedure calls. </p>
  
  <p>What am I missing here? What is the correct methodology for working with Hibernate?</p>