posts - 42, comments - 7, trackbacks - 0, articles - 1

          Myeclipse 平臺下開發Hibernate入門實例

          Posted on 2007-09-16 15:14 TuringJava 閱讀(495) 評論(0)  編輯  收藏 所屬分類: Hibernate
          最近正在學習Hibernate,利用的是Myeclipse開發平臺,在網上轉悠了一大圈找到了幾個比較好的入門學習實例。
          Example1:http://www.myeclipseide.com/images/tutorials/quickstarts/introduction_to_hibernate/tutorial.html


          Example2:http://www.myeclipseide.com/documentation/quickstarts/hibernate/

          Example3:http://www.roseindia.net/hibernate/firstexample.shtml




          Simple Introduce to Hibernate:
          1.Hibernate is an OR-mapping technology that is used to map database structures to Java objects at runtime.
          2.  Two important configuration files:

          hibernate.cfg.xml. On startup, Hibernate consults this XML file for its operating properties, such as database connection string and password, database dialect, and mapping files locations. Hibernate searches for this file on the classpath. 
          mapping description file (file extension *.hbm)
          that instructs Hibernate how to map data between a specific Java class and one or more database tables.
          3.user for
          Hibernate may be used by any Java application that requires moving data between Java application objects and database tables. Thus, it's very useful in developing two and three-tier J2EE applications. Integration of Hibernate into your application involves:

          • Installing the Hibernate core and support JAR libraries into your project
          • Creating a hibernate.cfg.xml file to describe how to access your database
          • Creating individual mapping descriptor files for each persistable Java classes

          開發過程:
          1.Config the hibernate.cfg.xml to connect the DataBase
          2.Writting the Persistance Class -POJO
          3.Mapping the POJO toDB, using **.hbm.xml
          4.Develop the Application
          主站蜘蛛池模板: 汉川市| 盈江县| 当阳市| 特克斯县| 红桥区| 常熟市| 东乡族自治县| 龙南县| 井研县| 江城| 巴林左旗| 东兴市| 永吉县| 南阳市| 三穗县| 瓮安县| 南部县| 普宁市| 喜德县| 晋宁县| 宝鸡市| 改则县| 揭西县| 建瓯市| 石首市| 金坛市| 丁青县| 吉林市| 社会| 兴文县| 萝北县| 宽城| 萨嘎县| 五常市| 习水县| 响水县| 株洲市| 青神县| 木里| 靖江市| 祁东县|