Hibernate - Persistent class

          1. Hibernate recommand persisten class as a standard javabean naming convention, but not required, Hibernate can access fileds directory too.
          But a no-argument constuctor is requeried for hibernate to instiante an object of the class by refection.

          2. Indentifier property if optional too, but needed if we want to use the full feature set of hibernate, for hibernate will distinguish object by identifiers while some special operation. e.g:  merge(), saveOrUpdate.

          3. Equals() and hasdCode() mehtod is recommanded to implenent when you want to store persisntent class in a Set or manipulate object span sessions.

          4. There are other 2 ways to define enity object except java class, Map and xml, the defect maybe can not do compile check, metrit is more flexisble than java.

          5. Tuplizier!!!!

          Hibernate integrated with J2EE infrastructure:
          Two main point:
          1. Hidden Configuration.config().buildSessionFacotory operation.
          2. Bound session factory to jndi namespace through many way. e.g: MBean
           

          posted on 2007-06-14 11:12 Sheldon Sun 閱讀(566) 評論(0)  編輯  收藏


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


          網站導航:
           
          <2007年6月>
          272829303112
          3456789
          10111213141516
          17181920212223
          24252627282930
          1234567

          導航

          統計

          常用鏈接

          留言簿(3)

          隨筆檔案

          文章檔案

          搜索

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 井研县| 山东省| 栾城县| 察隅县| 涿鹿县| 鸡西市| 乡宁县| 醴陵市| 黔南| 长兴县| 禹州市| 洛隆县| 日土县| 秦皇岛市| 石首市| 盐池县| 临夏市| 黔江区| 灵寿县| 新和县| 托克托县| 兴安盟| 星子县| 辽宁省| 枣强县| 台江县| 宿松县| 海兴县| 翁源县| 如皋市| 灵台县| 临颍县| 新河县| 茂名市| 抚宁县| 淮北市| 龙胜| 山东省| 柞水县| 永吉县| 长岛县|