Hibernate中的Middlegen入门指南
目标:利用middlegen生产hbm.xml文件
工具:
1、Middlegen-Hibernate-r5 相关连接
2、hibernate-
3、hibernate-extensions-
4、xdoclet-bin-
5、ant-
6、j2dk1.4以上
工作步骤:
1、 安装好j2dk,并设好java_HOME
2、 安装好ant(一般解压到某个目录即可),并设好ANT_HOME
3、 设置好path和classpath
设置好以后,可以在dos提示下运行set命令查看,以下是我设置好后运行set的结果,供参考:
D:/javatools/Middlegen-Hibernate-r5>set
ALLUSERSPROFILE=C:/Documents and Settings/All Users
ANT_HOME=D:/ant-
APPDATA=C:/Documents and Settings/Administrator/application Data
C51INC=D:/JavaWebStudio/C51/INC
C51LIB=D:/JavaWebStudio/C51/LIB
CLASSPATH=.;C:/Java/jdk
CLOUDSCAPE_INSTALL=D:/eclipse_plugin/cloudscape
ClusterLog=C:/WINDOWS/Cluster/cluster.log
CommonProgramFiles=C:/Program Files/Common Files
COMPUTERNAME=SMXSH
ComSpec=C:/WINDOWS/system32/cmd.exe
HOMEDRIVE=C:
HOMEPATH=/Documents and Settings/Administrator
JAVA_HOME=C:/Java/jdk
LOGONSERVER=//SMXSH
NUMBER_OF_PROCESSORS=1
OS=Windows_NT
Path=.;C:/Java/jdk
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSHPROCESSOR_ARCHITECTURE=x86
PROCESSOR_IDENTIFIER=x86 Family 15 Model 2 Stepping 9, GenuineIntel
PROCESSOR_LEVEL=15
PROCESSOR_REVISION=0209
ProgramFiles=C:/Program Files
PROMPT=$P$G
sessionNAME=Console
SystemDrive=C:
SystemRoot=C:/WINDOWS
TEMP=C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp
TMP=C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp
TOMCAT_HOME=D:/eclipse_plugin/jakarta-tomcat/
USERDOMAIN=SMXSH
USERNAME=Administrator
USERPROFILE=C:/Documents and Settings/Administrator
windir=C:/WINDOWS
新闻热点
疑难解答