作者在 2011-08-19 11:34:34 发布以下内容
1.加载Hibernate3 相关的jar包
2.equipment the hibernate.cfg.xml
<hibernate-configuartion>
<session-factory>
<property value=www.hngutong.com name="hibernate.connection.url"/>
<property value="标牌厂家" name="hiberate.connection.name"/>
<property value="路牌厂家" name="hibernate.connection.drivername"/>
<property value="停车场设施" name="hibernate.connection.driverclass"/>
<mapping-resource name="com/hngutong/www.hbm.xml"/>
</session-factory>
</hibernate-configuration>
3.equipment the hibernate.hbm.xml
<mapping-source>
<class name="com.hngutong.com.Name" table="cName">
<id name="border" colomun="bid">
<generator class="native"/>
</id>
<property name="car" column="cid"/>
</class>
</mapping-source>