开发者

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开发者_如何学JAVA 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.


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.


Example config file can be found on following location

http://hibernatepojoge.sourceforge.net/

set correct configuration and run as jar, it will generate the required mapping pojos.


I used dali to generate my pojo's from database schema


You can also run this tool via the provided maven plugin

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜