开发者

POJO from HBM file

开发者 https://www.devze.com 2022-12-27 23:07 出处:网络
HI all, I am new to hibernateand I woul开发者_开发知识库d to create POJO from xxx.hbm.xml file.

HI all,

I am new to hibernate and I woul开发者_开发知识库d to create POJO from xxx.hbm.xml file.

Is it possible? Please respond.


The Hibernate Tools include an Ant Task allowing to generate Java code from mapping files (amongst other things). Check the section 4.4.2. POJO java code exporter (<hbm2java>) in the documentation.

The Hibernate3 Maven Plugin also supports this (with the hibernate3:hbm2java goal).

0

精彩评论

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