If you simply want to generate entities from an existing database, I think you are much better off using the hibernate tools which are created and maintained by the Hibernate team (see the reverse engineering tool).
It's been a while since I've used it but from memory you can invoke the reverse engineering from ant/maven/gradle or you can install the jboss tools eclipse plugin and invoke from eclipse. I'm sure you can allso invoke from the command line.