亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

正在回答

2 回答

我在hibernate-release-4.3.0.Final包中找到的不能用,在其他的包里面找了一個?。?/p>

<!DOCTYPE hibernate-configuration PUBLIC

? ? ? ? "-//Hibernate/Hibernate Configuration DTD 3.0//EN"

? ? ? ? "http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd">


<hibernate-configuration>

? ? <session-factory>

? ? ? ? <property name="hibernate.dialect">org.hibernate.dialect.HSQLDialect</property>

? ? ? ? <property name="hibernate.connection.driver_class">org.hsqldb.jdbcDriver</property>

? ? ? ? <property name="hibernate.connection.username">sa</property>

? ? ? ? <property name="hibernate.connection.password"></property>

? ? ? ? <property name="hibernate.connection.url">jdbc:hsqldb:.</property>

? ? ? ? <property name="hibernate.cache.use_query_cache">true</property>

? ? ? ? <property name="hibernate.cache.region_prefix">hibernate.test</property>

? ? ? ? <property name="hibernate.jdbc.use_streams_for_binary">true</property>

? ? ? ? <property name="hibernate.jdbc.batch_size">0</property>

? ? ? ? <property name="hibernate.max_fetch_depth">3</property>

? ? ? ? <property name="hibernate.hbm2ddl.auto">create-drop</property>

? ? ? ? <property name="hibernate.generate_statistics">true</property>

? ? ? ? <property name="hibernate.cache.region.factory_class">org.hibernate.testing.cache.CachingRegionFactory</property>

? ? ? ? <mapping class="org.hibernate.ejb.test.Item"/>

? ? ? ? <mapping class="org.hibernate.ejb.test.Cat"/>

<mapping class="org.hibernate.ejb.test.Kitten"/>

? ? ? ? <mapping class="org.hibernate.ejb.test.Distributor"/>

? ? ? ? <class-cache class="org.hibernate.ejb.test.Item" usage="read-write"/>

? ? ? ? <collection-cache collection="org.hibernate.ejb.test.Item.distributors" usage="read-write" region="RegionName"/>

? ? </session-factory>

</hibernate-configuration>


0 回復 有任何疑惑可以回復我~

在網上搜一個,修改為自己的數據庫信息就OK

0 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消
Hibernate初探之一對多映射
  • 參與學習       42163    人
  • 解答問題       310    個

Hibernate中一對多關聯映射配置,以及cascade和inverse屬性作用

進入課程

hibernate.config.xml

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號