title: Dynamically adding entities to hibernate
body: <p>How can we add more entities to hibernate? Mine is a standalone application built on spring and hibernate.</p>
  
  <p>I have the metadata about the class file of the new entities. How can I add them to hibernate session factory without restarting or making changes to the confugation XML files?</p>
  
  <p>All the mappings are managed by hibernate itself. And only the configurations like connection parameters are maintained in XML.</p>
  
  <p><em><strong>In short, if I have the class file location of the entities, how can I instruct hibernate to pickup the entities from there, without restarting or making changes to the config files?</em></strong></p>
  
  <p>Thanks.</p>