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)

          隨筆檔案

          文章檔案

          搜索

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 磴口县| 江城| 平泉县| 射洪县| 错那县| 沧州市| 沽源县| 江口县| 华容县| 孝义市| 汨罗市| 静安区| 周宁县| 崇仁县| 广昌县| 莱芜市| 云浮市| 拜泉县| 合作市| 安福县| 邵东县| 赤壁市| 临清市| 清流县| 隆化县| 景泰县| 高雄县| 若羌县| 德格县| 琼海市| 双鸭山市| 沙河市| 定安县| 武冈市| 晋中市| 南川市| 庄河市| 阿克陶县| 郁南县| 山东| 呼伦贝尔市|