Ryan's Java world!

          something about Java and opensource!

          BlogJava 首頁 新隨筆 聯系 聚合 管理
            51 Posts :: 25 Stories :: 59 Comments :: 0 Trackbacks

          對于不喜歡使用Glassfish的原配持久層支持(TopLink)的朋友。現在可以替換調他了,下面屈指可數的幾步告訴我們如何使用hibernate來持久化數據。偏愛Hibernate的用戶也給 Glassfish一個機會哦

          Use Hibernate as a persistence provider with Glassfish

          from http://blogs.sun.com/roller/page/GlassFishPersistence#use_hibernate_as_a_persistence?
          As you must be aware, Glassfish currently has Toplink Essentials as the default persistence provider. The question that frequently gets asked is: How hard it is to to use Hibernate as the persistence provider with Glassfish?
          The answer is:??Not at all :). Just?drop couple of jars reqired by Hibernate in the lib directory of Glassfish and modify your persistence.xml to use Hibernate as the provider and you are ready to go. Lets walk through the steps:

          1. Download and install glassfish milestone 6 build or later.
          2. Download and install Hibernate3 3.2cr1 or later.
          3. Download and install Hibernate EntityManager 3.1 beta7?or later.
          4. Copy the?required Hibernate jars into Glassfish lib dir. The script here contains the list of jars.
          5. Update your persistence.xml to use Hibernate as the persistence provider. Here is a sample persistence.xml
          6. Deploy and run your application.

          posted on 2006-04-16 21:48 冰雨 閱讀(774) 評論(0)  編輯  收藏

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


          網站導航:
           

          JSF中文技術文摘
          主站蜘蛛池模板: 乡城县| 安陆市| 井陉县| 龙江县| 云安县| 无为县| 巴南区| 南投县| 沙坪坝区| 达孜县| 壶关县| 仙游县| 阳信县| 阿坝县| 梁河县| 炉霍县| 马关县| 夹江县| 奉节县| 英德市| 孝感市| 青田县| 北川| 砚山县| 阿拉善左旗| 蓝山县| 新河县| 蒙山县| 南京市| 大埔县| 克拉玛依市| 革吉县| 卢湾区| 深水埗区| 巴东县| 扶绥县| 凭祥市| 宁陕县| 泾源县| 深水埗区| 邯郸市|