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
          主站蜘蛛池模板: 永安市| 濮阳县| 万盛区| 玉溪市| 麦盖提县| 龙井市| 平谷区| 浦江县| 通城县| 汾阳市| 昌图县| 咸宁市| 平舆县| 开平市| 洪湖市| 蒙山县| 宝鸡市| 天气| 永德县| 邵阳县| 东平县| 龙江县| 新营市| 利川市| 山东省| 南皮县| 六枝特区| 淳安县| 新乐市| 双峰县| 鄂托克前旗| 卓资县| 武胜县| 承德县| 古丈县| 凯里市| 浑源县| 西乌珠穆沁旗| 若尔盖县| 南宫市| 曲麻莱县|