锘??xml version="1.0" encoding="utf-8" standalone="yes"?>91青娱乐在线视频,久久免费视频1,欧美中文在线观看http://www.aygfsteel.com/fjb19830825/嫻烽様澶╃┖zh-cnThu, 03 Jul 2025 13:33:33 GMTThu, 03 Jul 2025 13:33:33 GMT60鐢℉ibernate瀹炵幇鎵歸噺鍔犺澆http://www.aygfsteel.com/fjb19830825/archive/2006/07/21/59429.html娉㈡嘗娉㈡嘗Fri, 21 Jul 2006 07:53:00 GMThttp://www.aygfsteel.com/fjb19830825/archive/2006/07/21/59429.htmlhttp://www.aygfsteel.com/fjb19830825/comments/59429.htmlhttp://www.aygfsteel.com/fjb19830825/archive/2006/07/21/59429.html#Feedback0http://www.aygfsteel.com/fjb19830825/comments/commentRss/59429.htmlhttp://www.aygfsteel.com/fjb19830825/services/trackbacks/59429.html涓嬮潰鏄竴涓敤Hibernate瀹炵幇瀵規(guī)暟鎹簱榪涜鎵歸噺鎿嶄綔鐨勭ず渚?br />
public class AddMoreWords {

聽private static String type = "idiom";
聽/**
聽 * @param args
聽 */
聽public static void main(String[] args) throws Exception {
聽聽// TODO Auto-generated method stub
聽聽
聽聽Session session = HibernateSessionFactory.currentSession();
聽聽Transaction txc = session.beginTransaction();
聽聽for(int i=0;i<1000;++i){
聽聽聽WordLib word = new WordLib();
聽聽聽word.setChn("mm"+(i+1));
聽聽聽word.setTime(new Date());
聽聽聽word.setType(type);
聽聽聽session.save(word);
聽聽聽if((i+1)%25 == 0){
聽聽聽聽session.flush();
聽聽聽聽session.clear();
聽聽聽}
聽聽}
//聽聽WordLib word = new WordLib();
//聽聽word.setChn("a");
//聽聽word.setTime(new Date());
//聽聽word.setType(type);
//聽聽session.save(word);
聽聽txc.commit();
聽聽HibernateSessionFactory.closeSession();
聽聽session.flush();
聽聽session.close();
聽}

}



娉㈡嘗 2006-07-21 15:53 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 塔城市| 介休市| 孟津县| 英德市| 渭南市| 灵川县| 靖安县| 安国市| 鹤庆县| 台东市| 宝兴县| 海兴县| 枣庄市| 雅安市| 两当县| 翼城县| 繁峙县| 郁南县| 墨玉县| 武威市| 石楼县| 徐汇区| 天镇县| 黎川县| 江都市| 光泽县| 沧州市| 琼海市| 三亚市| 海安县| 定结县| 长寿区| 湖南省| 句容市| 泸水县| 木兰县| 成都市| 华亭县| 五常市| 丰城市| 南华县|