锘??xml version="1.0" encoding="utf-8" standalone="yes"?>欧美不卡一区二区三区四区,欧美影视一区二区三区,日本在线观看不卡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();


]]>
主站蜘蛛池模板:
安泽县|
化德县|
嘉兴市|
万年县|
汕尾市|
合阳县|
自贡市|
衡山县|
灌云县|
板桥市|
潮州市|
大厂|
高青县|
牡丹江市|
普洱|
宁化县|
岳池县|
苗栗市|
和林格尔县|
原阳县|
曲周县|
桐城市|
增城市|
修文县|
罗平县|
黄平县|
大兴区|
河东区|
西盟|
肥乡县|
澎湖县|
双流县|
西平县|
余姚市|
赣州市|
霍州市|
壤塘县|
江源县|
革吉县|
安吉县|
萨迦县|