Search code examples
javadatabasehibernatepojo

Hibernate to POJO Generator


I was googling for Hibernate to POJO Generator and found this Hibernate POJO Generator .

I downloaded its jar file but couldn't find any way to use it.

I want to generate all Hibernate DAO related classes by giving a DB table schema.

I know that another way is to use eclipse plugin, but I want to generate classes from Hibernate POJO Generator.


Solution

  • The usage is documented in the Usage Example page :

    HbnPojoGen is not (yet) an eclipse plugin.

    To use, run the jar file provided together with a config file which you’ll have to customize to your liking as follows:

    java -jar hbnPojoGen.jar config.xml   
    

    The configuration file contains everything necessary to generate your source code.