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)

          隨筆檔案

          文章檔案

          搜索

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 宜宾县| 五常市| 平谷区| 扎赉特旗| 绥德县| 兰溪市| 江达县| 怀宁县| 察哈| 都匀市| 林口县| 元阳县| 姜堰市| 昭平县| 汉源县| 娱乐| 涞水县| 高雄市| 浪卡子县| 武陟县| 大新县| 淮北市| 临湘市| 蒲城县| 绥阳县| 台山市| 肥城市| 禹州市| 天气| 冷水江市| 普安县| 平顺县| 黔西| 永昌县| 绥芬河市| 呼图壁县| 南丰县| 宜兰县| 大宁县| 定陶县| 晋州市|