title: How can I generate entities with IntelliJ without having a session factory?
body: <p>I am using our internal libraries for generating a session factory. This means I don't have an <code>xml</code> file with Hibernate configuration; information like that are read from a configuration file in the container that my application is deployed in. I also don't create a new instance of <code>SessionFactory</code> anywhere in my code; I add a bundle that does that for me.</p>
  
  <p>However, when I try to generate entities with IntelliJ, I get an error saying:</p>
  
  <p><code>JPA annotation mappings require at least one Session Factory</code></p>
  
  <p>Considering that I don't have a configuration file, and I don't construct the <code>SessionFactory</code> myself, is there a way to generate annotations?</p>