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 
|