<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 :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理 ::
      213 隨筆 :: 0 文章 :: 285 評論 :: 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) 評論(0)  編輯  收藏 所屬分類: JavaProgramming
    主站蜘蛛池模板: 成年女人喷潮毛片免费播放| 国产成人亚洲精品青草天美| 四虎一区二区成人免费影院网址| 亚洲自偷自偷在线制服 | 亚洲男人天堂2022| 国产99视频精品免费视频7| 最近免费mv在线观看动漫| 国产成人精品亚洲2020| 国产精品亚洲高清一区二区| 日本zzzzwww大片免费| 性生大片视频免费观看一级| 亚洲精品不卡视频| 亚洲国产一级在线观看 | 美女网站在线观看视频免费的| 亚洲欧洲自拍拍偷午夜色| 亚洲AV无码乱码在线观看| 亚洲精品免费视频| 一本到卡二卡三卡免费高| 亚洲一区二区三区在线观看蜜桃| 免费在线观看一级毛片| 免费毛片a在线观看67194| 成人性做爰aaa片免费看| 色偷偷尼玛图亚洲综合| 亚洲欧洲校园自拍都市| 区三区激情福利综合中文字幕在线一区亚洲视频1 | 4399好看日本在线电影免费| 亚洲国产精品久久| 亚洲人成网站看在线播放| 亚洲AV无码一区二区三区在线观看| 久久aa毛片免费播放嗯啊| 亚洲AV成人精品日韩一区| 亚洲视频一区二区在线观看| 亚洲女同成人AⅤ人片在线观看| 无码人妻一区二区三区免费手机| 成人性做爰aaa片免费看| 老外毛片免费视频播放| 国产亚洲精品成人AA片| 亚洲沟沟美女亚洲沟沟| 久久夜色精品国产亚洲AV动态图 | 免费人成激情视频| 日韩一区二区a片免费观看 |