Neil的備忘錄

          just do it
          posts - 66, comments - 8, trackbacks - 0, articles - 0

          Session.delete() will remove an object's state from the database. Of course, your application might still hold a reference to a deleted object. It's best to think of delete() as making a persistent instance transient.

          sess.delete(cat);

          You may delete objects in any order you like, without risk of foreign key constraint violations. It is still possible to violate a NOT NULL constraint on a foreign key column by deleting objects in the wrong order, e.g. if you delete the parent, but forget to delete the children. 


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


          網(wǎng)站導(dǎo)航:
           
          主站蜘蛛池模板: 台湾省| 靖州| 梁山县| 衡南县| 古蔺县| 天长市| 堆龙德庆县| 宝鸡市| 金秀| 体育| 精河县| 同江市| 闽清县| 宜阳县| 清丰县| 南召县| 响水县| 满洲里市| 新巴尔虎右旗| 新丰县| 德惠市| 蓝山县| 武鸣县| 晋宁县| 济阳县| 临城县| 青川县| 怀柔区| 会东县| 苏尼特左旗| 石河子市| 长寿区| 福建省| 靖边县| 赤城县| 广德县| 郁南县| 翁源县| 旺苍县| 蓝田县| 兴文县|