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


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


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

          導航

          統計

          常用鏈接

          留言簿(3)

          隨筆檔案

          文章檔案

          搜索

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 高唐县| 敦煌市| 水城县| 新昌县| 南郑县| 兴文县| 芒康县| 南充市| 普兰店市| 阿拉善右旗| 饶阳县| 慈溪市| 宁城县| 呈贡县| 东至县| 武定县| 昆山市| 雅江县| 鄂托克旗| 三门峡市| 当涂县| 石柱| 卓资县| 博白县| 台北县| 西青区| 通化市| 定远县| 钟山县| 麻江县| 巴塘县| 察雅县| 阳曲县| 且末县| 靖边县| 麻江县| 漳平市| 正宁县| 岳阳县| 兰西县| 惠水县|