锘??xml version="1.0" encoding="utf-8" standalone="yes"?>久久米奇亚洲,亚洲精品无播放器在线播放,五月天欧美精品http://www.aygfsteel.com/knowhow/archive/2007/08/27/55774.html#140092鍝堝搱鍝堝搱Mon, 27 Aug 2007 10:56:00 GMThttp://www.aygfsteel.com/knowhow/archive/2007/08/27/55774.html#140092
涓轟粈涔堣佹槸鎶ヨ繖涓敊璇?img src ="http://www.aygfsteel.com/knowhow/aggbug/140092.html" width = "1" height = "1" />

鍝堝搱 2007-08-27 18:56 鍙戣〃璇勮
]]>
re: Hibernate澶嶅悎涓婚敭鐨勫鐞?涓)http://www.aygfsteel.com/knowhow/archive/2006/10/22/55784.html#76664hibernate鍒濆鑰?/dc:creator>hibernate鍒濆鑰?/author>Sun, 22 Oct 2006 13:51:00 GMThttp://www.aygfsteel.com/knowhow/archive/2006/10/22/55784.html#76664鎴戠殑浠g爜濡備笅:
User.java
...

User.hbm.xml

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping
PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping>
<class name="onlyfun.caterpillar.user" table="user" catalog="sample">

<composite-id>
<key-property name="name"
column="name"
type="java.lang.String"/>
<key-property name="phone"
column="phone"
type="java.lang.String"/>
</composite-id>
<property name="age" column="age" type="java.lang.Integer"/>
</class>

</hibernate-mapping>

HibernateTest.java
...

build.xml:
<project name="JNameIt" default="all">
<target name="setProperties" description="setup the common properties">
<property name="src.dir" value="src"/>
<property name="images.dir" value="images"/>
<property name="classes.dir" value="classes"/>
<property name="lib.dir" value="lib"/>
</target>

<path id="1">
<fileset dir="lib">
<include name="**/*.jar"/>
</fileset>
</path>

<path id="class.path">
<!-- Include our own classes, of course -->
<pathelement location="${classes.dir}" />
<!-- Include jars in the project library directory -->
<fileset dir="lib">
<include name="*.jar"/>
</fileset>
<pathelement path ="${classpath}"/>

</path>

<taskdef name="schemaexport"
classname="org.hibernate.tool.hbm2ddl.SchemaExportTask"
classpathref="class.path"/>

<schemaexport
properties="classes/hibernate.properties"
quiet="no"
text="no"
drop="no"
delimiter=";"
output="/schema-export.sql">
<fileset dir="images">
<include name="*.hbm.xml"/>
</fileset>
</schemaexport>


<target name="clean" depends="setProperties" description="clean up the previous built files or dirs">
<delete dir="${classes.dir}"/>
<delete file="${jar.file}"/>
</target>

<target name="prepareDir" depends="setProperties" description="prepare necessary dirs">
<mkdir dir="${classes.dir}"/>
<mkdir dir="${lib.dir}"/>
<!--
<copy todir="${classes.dir}/images">
<fileset dir="${images.dir}"/>
</copy>
-->
</target>

<target name="compile" depends="prepareDir" description="compile the source files">
<javac srcdir="./src" destdir="${classes.dir}"
classpathref="1"/>
<copy todir="${classes.dir}/onlyfun/caterpillar">
<fileset dir="${images.dir}"/>
</copy>
</target>

<target name="run" depends="compile">

<java fork="true" classname="onlyfun.caterpillar.HibernateTest" classpathref="1">
<classpath path="${classes.dir}"/>
</java>
</target>

<target name="all" depends="clean" description="perform all targets"/>
</project>

User.java,hibernate.java鏀懼湪WEB-INF/SRC 涓?User.hbm.xml鏀懼湪WEB-INF/images涓?build.xml鏀懼湪WEB-INF,
紼嬪簭緇撴瀯鍜屼綘鍩烘湰涓鏍?涓轟粈涔堢敤ant run 鏃跺嚭鐜?
D:\Apache Software Foundation\Tomcat 5.5\webapps\HibernateTest\WEB-INF\build.xml
:35: Schema text failed: component class not found: onlyfun.caterpillar.User鐨勯敊璇?濂介暱鏃墮棿閮芥病瑙e喅,緗戜笂涔熸壘涓嶅埌綾諱技鐨勯敊璇?
璋㈣阿浣犲府蹇欑湅涓涓?

]]>
re: Hibernate鏄犲皠鑷畾涔夋暟鎹被鍨?/title><link>http://www.aygfsteel.com/knowhow/archive/2006/08/14/55774.html#63486</link><dc:creator>kocr</dc:creator><author>kocr</author><pubDate>Mon, 14 Aug 2006 07:16:00 GMT</pubDate><guid>http://www.aygfsteel.com/knowhow/archive/2006/08/14/55774.html#63486</guid><description><![CDATA[鍏跺疄浣滆呭簲璇ュ湪鏂囦腑緇欏嚭鏁版嵁搴撶殑鍝嶅簲琛ㄧ粨鏋勫拰鍏寵仈鍏崇郴錛岃繖鏍風粰浜轟竴鐩簡鐒跺拰娓呮櫚鐨勬劅瑙夈備釜浜烘剼瑙併?img src ="http://www.aygfsteel.com/knowhow/aggbug/63486.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/knowhow/" target="_blank">kocr</a> 2006-08-14 15:16 <a href="http://www.aygfsteel.com/knowhow/archive/2006/08/14/55774.html#63486#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>re: Hibernate澶嶅悎涓婚敭鐨勫鐞?(浜? http://www.aygfsteel.com/knowhow/archive/2006/08/02/55828.html#61370dt1dt1Wed, 02 Aug 2006 10:08:00 GMThttp://www.aygfsteel.com/knowhow/archive/2006/08/02/55828.html#61370

dt1 2006-08-02 18:08 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 即墨市| 鄢陵县| 赫章县| 昌黎县| 庆城县| 民县| 日喀则市| 克什克腾旗| 民勤县| 宕昌县| 山西省| 遵义县| 合江县| 溧水县| 固安县| 文昌市| 涞源县| 阿坝县| 葫芦岛市| 长武县| 吕梁市| 林州市| 革吉县| 乌拉特中旗| 久治县| 本溪市| 浦东新区| 凭祥市| 湟源县| 图片| 张北县| 东光县| 顺平县| 策勒县| 乌什县| 漯河市| 武城县| 蛟河市| 综艺| 大悟县| 淮南市|