title: How to generate model from database
body: <p>I have an existing database. I need to generate the model classes in Java from it. Are there any tool/library that will allow me to do this. It will be of great help if it can emulate the entity relationships in the database into the model classes as well.</p>
  
  <p>It is acceptable if the tool/library works with only one database vendor. I will create a database there and then generate the model.</p>
  
  <p>Thanks in advance.</p>
  
  <p><strong>EDIT :</strong> I will probably use <strong>Hibernate</strong> as the ORM framework if I manage to generate the model.</p>