锘??xml version="1.0" encoding="utf-8" standalone="yes"?>欧美日韩精品不卡,2021久久国产精品不只是精品,国产女同一区二区http://www.aygfsteel.com/jht/category/18466.html鍔姏zh-cnSun, 28 Oct 2007 00:27:02 GMTSun, 28 Oct 2007 00:27:02 GMT60- Hibernate鍩虹 - 閰嶇疆http://www.aygfsteel.com/jht/archive/2007/10/26/156144.htmljhtjhtFri, 26 Oct 2007 06:40:00 GMThttp://www.aygfsteel.com/jht/archive/2007/10/26/156144.htmlhttp://www.aygfsteel.com/jht/comments/156144.htmlhttp://www.aygfsteel.com/jht/archive/2007/10/26/156144.html#Feedback0http://www.aygfsteel.com/jht/comments/commentRss/156144.htmlhttp://www.aygfsteel.com/jht/services/trackbacks/156144.html
涓嬮潰榪欎竴孌礨ML閰嶇疆鏂囦歡涓叧浜庢暟鎹簱榪炴帴鏂瑰紡鐨勯厤緗紝鍙互鍦╤ibernate.properties涓畬鎴?br />
<?xml聽version="1.0"聽encoding="UTF-8"?>
<!DOCTYPE聽hibernate-configuration聽PUBLIC
聽聽聽聽聽聽聽聽"-//Hibernate/Hibernate聽Configuration聽DTD聽3.0//EN"
聽聽聽聽聽聽聽聽"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
聽聽聽聽<session-factory聽name="sf">
聽聽聽聽<!--聽
聽聽聽聽聽聽聽聽<property聽name="hibernate.connection.driver_class">
聽聽聽聽聽聽聽聽聽聽聽聽org.hsqldb.jdbcDriver
聽聽聽聽聽聽聽聽</property>
聽聽聽聽聽聽聽聽<property聽name="hibernate.connection.url">
聽聽聽聽聽聽聽聽聽聽聽聽jdbc:hsqldb:hsql://localhost/HibernateMapping
聽聽聽聽聽聽聽聽</property>
聽聽聽聽聽聽聽聽<property聽name="hibernate.connection.username">sa</property>
聽聽聽聽聽聽聽聽<property聽name="hibernate.dialect">
聽聽聽聽聽聽聽聽聽聽聽聽org.hibernate.dialect.HSQLDialect
聽聽聽聽聽聽聽聽</property>
聽聽聽聽聽-->
聽聽聽聽聽聽聽聽<mapping聽package="cn.heapstack.models"聽/>
聽聽聽聽聽聽聽聽<mapping聽class="cn.heapstack.models.User"聽/>
聽聽聽聽聽聽聽聽<mapping聽class="cn.heapstack.models.UserInfo"聽/>
聽聽聽聽</session-factory>

聽聽聽聽
</hibernate-configuration>

##聽HypersonicSQL
#$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
hibernate.dialect聽org.hibernate.dialect.HSQLDialect
hibernate.connection.driver_class聽org.hsqldb.jdbcDriver
hibernate.connection.username聽sa
hibernate.connection.password
hibernate.connection.url聽jdbc:hsqldb:hsql://localhost/HibernateMapping
#$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$


浠g爜紺轟緥錛?br />
Configuration聽cfg聽=聽new聽AnnotationConfiguration().configure("./hibernate.cfg.xml");
SessionFactory聽sf聽=聽cfg.buildSessionFactory();
Session聽session聽=聽sf.openSession();
org.hibernate.Transaction聽tx=聽session.beginTransaction();
tx.commit();
session.close();


]]>
主站蜘蛛池模板:
丁青县|
宁海县|
常宁市|
洛南县|
临沂市|
聂荣县|
巴林左旗|
英德市|
蒙自县|
微博|
镶黄旗|
浦东新区|
鄱阳县|
中方县|
辰溪县|
茂名市|
汤阴县|
湘潭市|
福建省|
漳州市|
阿坝|
南宁市|
新泰市|
平定县|
巴青县|
山东省|
迁西县|
城口县|
平陆县|
彭山县|
神池县|
厦门市|
福贡县|
德化县|
二手房|
卢氏县|
眉山市|
佛冈县|
梓潼县|
随州市|
汕尾市|