title: How do I get the Hibernate Configuration after the EntityManagerFactory has been built?
body: <p>My web framework (Play 1.2.5) creates an EJB3Configuration local to a method which it uses to create an <code>EntityManagerFactory</code> <a href="https://github.com/playframework/play/blob/1.2.5/framework/src/play/db/jpa/JPAPlugin.java#L108" rel="nofollow noreferrer">(source)</a>.  I am working on a script and would like to run the <code>generateSchemaUpdateScript()</code> method from Configuration to make SQL scripts I can verify and run on production deploys.  The problem I am having is that I cannot figure out how to access the Configuration object that was used or how to generate a Configuration object after the <code>EntityManagerFactory</code> has been built.</p>