I am using our internal libraries for generating a session factory. This means I don't have an xml 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 SessionFactory anywhere in my code; I add a bundle that does that for me.
However, when I try to generate entities with IntelliJ, I get an error saying:
JPA annotation mappings require at least one Session Factory
Considering that I don't have a configuration file, and I don't construct the SessionFactory myself, is there a way to generate annotations?