<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    kukooBlog

    look to the master, follow the master, walk with the master, see through the master, become the master.

      BlogJava :: 首頁(yè) :: 新隨筆 :: 聯(lián)系 :: 聚合  :: 管理 ::
      213 隨筆 :: 0 文章 :: 285 評(píng)論 :: 0 Trackbacks

    .... At the other end of a typical web application is the persistence layer. .... There are several open source object-to-relational mapping (ORM) frameworks that solve much of this problem. In particular, the Hibernate framework allows object-to-relational persistence and query service for Java. Hibernate has a medium learning curve for Java developers who are already familiar with SQL and the JDBC API. Hibernate persistent objects are based on plain-old Java objects and Java collections. ..... The following list contains the type of code that you would write inside a persistence framework:

     

    • Querying relational information into objects. Hibernate does this through an OO query language called HQL, or by using an expressive criteria API. HQL is very similar to SQL except you use objects instead of tables and fields instead of columns. There are some new specific HQL language elements to learn; however, they are easy to understand and well documented. HQL is a natural language to use for querying objects that require a small learning curve.
    • Saving, updating, and deleting information stored in a database.
    • Advanced object-to-relational mapping frameworks like Hibernate have support for most major SQL databases, and they support parent/child relationships, transactions, inheritance, and polymorphism.

     

    Here are some items that should be avoided in the persistence layer:

     

    • Business logic should be in a higher layer of your application. Only data access operations should be permitted.
    • You should not have persistence logic coupled with your presentation logic. Avoid logic in presentation components such as JSPs or servlet-based classes that communicate with data access directly.

     

    By isolating persistence logic into its own layer, the application becomes flexible to change without affecting code in other layers. For example, Hibernate could be replaced with another persistence framework or API without modification to the code in any other layer.

     

    Excerpt from "Wiring Your Web Application with Open Source Java" by Mark Eagle

     

    [NoteThis blog was migrated from my very old blog which was in the blogspirit.]


    Yourit ,
    Mycat Programming

    posted on 2005-06-02 09:14 kukooBlog 閱讀(872) 評(píng)論(0)  編輯  收藏 所屬分類: Java 、Programming
    主站蜘蛛池模板: 久久久久亚洲精品成人网小说 | 日本免费无遮挡吸乳视频电影| 亚洲电影一区二区三区| a级在线免费观看| 亚洲人成伊人成综合网久久久| 一级做a爰片久久毛片免费看| 亚洲国产精品毛片av不卡在线| 无码天堂亚洲国产AV| 国产免费牲交视频| 少妇亚洲免费精品| 91麻豆精品国产自产在线观看亚洲| 日韩毛片在线免费观看| 国产亚洲精品不卡在线| 成全高清在线观看免费| 亚洲人成在线播放网站岛国| 37pao成人国产永久免费视频| 亚洲成人网在线播放| 最近中文字幕无吗免费高清| 亚洲AV噜噜一区二区三区| 亚洲av无码成人精品区| a级毛片在线免费看| 亚洲天堂中文字幕在线观看| 成在线人永久免费视频播放| 一区二区三区免费看| 久久精品国产亚洲AV网站| 亚欧色视频在线观看免费| 亚洲精品理论电影在线观看| 国产免费观看a大片的网站| 大地资源中文在线观看免费版| 精品无码一区二区三区亚洲桃色| 成人免费网站在线观看| 思思久久99热免费精品6| 亚洲国产成人精品不卡青青草原| 综合在线免费视频| 男女交性无遮挡免费视频| 亚洲欧洲日产国码久在线观看| 成人免费午夜无码视频| av午夜福利一片免费看久久| 久久亚洲精品成人av无码网站| 国产网站免费观看| 无码囯产精品一区二区免费|