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 閱讀(563) 評論(0)  編輯  收藏


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


          網(wǎng)站導(dǎo)航:
           
          <2007年6月>
          272829303112
          3456789
          10111213141516
          17181920212223
          24252627282930
          1234567

          導(dǎo)航

          統(tǒng)計(jì)

          常用鏈接

          留言簿(3)

          隨筆檔案

          文章檔案

          搜索

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 易门县| 伊宁县| 福贡县| 当雄县| 安多县| 科技| 九江市| 上栗县| 仁怀市| 巴里| 平塘县| 佛坪县| 新平| 托克逊县| 长子县| 富川| 桂林市| 阳新县| 保山市| 博爱县| 中超| 万全县| 吴堡县| 炎陵县| 三江| 平顺县| 潍坊市| 林周县| 通化市| 宁强县| 陇南市| 襄樊市| 绥江县| 英吉沙县| 吕梁市| 开原市| 阿城市| 敖汉旗| 阜南县| 湖州市| 常山县|