setenv.bat
-------------------------------------------
@echo off
set hibernate_lib=d:/lib/hibernate
set class_root=d:/work/hibernate_test1/classes
set cp=%class_root%;./;%hibernate_lib%/hibernate-tools.jar;%hibernate_lib%/hibernate2.jar;%hibernate_lib%/commons-logging-1.0.4.jar;
class2hbm.bat
--------------------------------------------
@echo off
call d:/bat/setenv.bat
java -cp %cp% net.sf.hibernate.tool.class2hbm.mapgenerator --output=%class_root%/%1.hbm.xml %2
----------------------
使用前要手工修改setenv.bat中的hibernate_lib和class_root
使用方法:
class2hbm foo full.class.name
闽公网安备 35060202000074号