Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 499
Muhammad Imran Tariq Avatar asked Jul 07 '11 11:07

Muhammad Imran Tariq


1 Answers

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.

like image 121
Timo Westkämper Avatar answered Oct 09 '22 09:10

Timo Westkämper