title: Code First Apprach with Hibernate
body: <p>I am a PHP Developer in the process of learning Java / Spring MVC / Hibernate. I was wondering if Hibernate supported Code First Approach like Entity is ASP.NET or Doctrine with PHP. All the resources I have seen so far the database if being created first and then you write your classes and XML files. Is it possible to do code first with Hibernate and it generates the database and handles the schema changes? If so can someone link me to a resource explaining how this is done? Thanks in advance.</p>
  
  <p>While I'm thinking about it can Hibernate generate the code based on an existing schema too?</p>