Category Archives: ant

hbm2java : specify generated beans package

To specify the package of generated java beans in hbm2java ant task, add jdbcconfiguration tag property “packagename” like following :

hbm2java with ant step by step

– workspace structure:
    + hbm/
        + build.xml
        + hibernate.cfg.xml
        + reveng.xml
        + lib/

– build.xml

– hibernate.cfg.xml

– reveng.xml

then type

your hibernate beans are ready in hbm/generated directory