linlinyu

          linlinyu
          posts - 0, comments - 4, trackbacks - 0, articles - 15

          persistence.xml

          Posted on 2008-06-01 16:14 linlin yu 閱讀(1010) 評論(0)  編輯  收藏 所屬分類: ejbhibernate
          <?xml version="1.0" encoding="UTF-8"?>
          <persistence xmlns="http://java.sun.com/xml/ns/persistence"
              xmlns:xsi
          ="http://www.w3.org/2001/XMLSchema-instance"
              xsi:schemaLocation
          ="http://java.sun.com/xml/ns/persistence
              http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"

              version
          ="1.0">

              
          <persistence-unit name="EJBServerPU" transaction-type="JTA">
                  
          <jta-data-source>java:/MySqlDS</jta-data-source>
                  
          <properties>
                      
          <property name="hibernate.hbm2ddl.auto" value="none" />
                      
          <property name="hibernate.dialect"
                          value
          ="org.hibernate.dialect.MySQLDialect" />
                      
          <property name="hibernate.show_sql" value="true" />
                      
          <!-- use a file system based index -->
                      
          <property name="hibernate.search.default.directory_provider"
                          value
          ="org.hibernate.search.store.FSDirectoryProvider" />
                      
          <!-- directory where the indexes will be stored -->
                      
          <property name="hibernate.search.default.indexBase"
                          value
          ="C:\\bb\\indexs" />

                      
          <property name="hibernate.ejb.event.post-insert"
                          value
          ="org.hibernate.search.event.FullTextIndexEventListener" />
                      
          <property name="hibernate.ejb.event.post-update"
                          value
          ="org.hibernate.search.event.FullTextIndexEventListener" />
                      
          <property name="hibernate.ejb.event.post-delete"
                          value
          ="org.hibernate.search.event.FullTextIndexEventListener" />



                  
          </properties>
              
          </persistence-unit>

          </persistence>

          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          主站蜘蛛池模板: 博野县| 莱州市| 韩城市| 饶平县| 潮州市| 手机| 仙游县| 聂拉木县| 朔州市| 太和县| 崇阳县| 碌曲县| 崇信县| 五峰| 平泉县| 衡水市| 内丘县| 班玛县| 改则县| 治多县| 韶关市| 苏尼特右旗| 淳安县| 镇安县| 黔江区| 孟津县| 淮阳县| 凤城市| 波密县| 乌海市| 桂林市| 塘沽区| 龙口市| 平利县| 繁昌县| 潮州市| 台南市| 三门县| 大冶市| 黑龙江省| 易门县|