首页 > 学院 > 开发设计 > 正文

Hibernate中的Middlegen入门指南

2019-11-18 11:34:33
字体:
来源:转载
供稿:网友

Hibernate中的Middlegen入门指南

 

 

 

目标:利用middlegen生产hbm.xml文件

工具:

1、Middlegen-Hibernate-r5 相关连接

2、hibernate-2.1.8 相关连接

3、hibernate-extensions-2.1.3 相关连接

4、xdoclet-bin-1.2.3相关连接

5、ant-1.6.5 相关连接

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-1.6.5

APPDATA=C:/Documents and Settings/Administrator/application Data

C51INC=D:/JavaWebStudio/C51/INC

C51LIB=D:/JavaWebStudio/C51/LIB

CLASSPATH=.;C:/Java/jdk1.5.0_01/lib;C:/Java/jdk1.5.0_01/lib/tools.jar;C:/Java/jdk1.5.0_01/lib/dt.jar;D:/javatools/apache-ant-1.6.5/lib/ant.jar;

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/jdk1.5.0_01

LOGONSERVER=//SMXSH

NUMBER_OF_PROCESSORS=1

OS=Windows_NT

Path=.;C:/Java/jdk1.5.0_01/bin;C:/WINDOWS/system32;C:/WINDOWS;C:/WINDOWS/System32/Wbem;D:/tools/groovy-1.0-beta-9/bin/;D:/ant-1.6.5/bin;C:/php;

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



发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表