<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    VIRGIN FOREST OF JAVA
    不要埋頭苦干,要學習,學習,再學習。。。。。
    powered by R.Zeus

    ??????? Configuration configuration=null;
    ??????? try {
    ??????????? Configuration configurationSerializable = new Configuration();
    ??????????? FileOutputStream fos = new FileOutputStream("serial");
    ??????????? ObjectOutputStream oos = new ObjectOutputStream(fos);
    ??????????? oos.writeObject(configurationSerializable);
    ??????????? oos.flush();
    ??????????? oos.close();
    ??????? } catch (FileNotFoundException e) {
    ??????????? e.printStackTrace();? //To change body of catch statement use File | Settings | File Templates.
    ??????? }
    ??????? catch (IOException e) {
    ??????????? e.printStackTrace();? //To change body of catch statement use File | Settings | File Templates.
    ??????? }

    ??????? try {
    ??????????? FileInputStream fis = new FileInputStream("serial");
    ??????????? ObjectInputStream ois = new ObjectInputStream(fis);
    ??????????? configuration = (Configuration) ois.readObject();
    ??????????? ois.close();
    ??????? } catch (FileNotFoundException e) {
    ??????????? e.printStackTrace();? //To change body of catch statement use File | Settings | File Templates.
    ??????? }
    ??????? catch (IOException e) {
    ??????????? e.printStackTrace();? //To change body of catch statement use File | Settings | File Templates.
    ??????? }
    ??????? catch (ClassNotFoundException e) {
    ??????????? e.printStackTrace();? //To change body of catch statement use File | Settings | File Templates.
    ??????? }
    ??????? if(configuration!=null)
    ??????? {
    ??????? SessionFactory sessionFactory = configuration.configure().buildSessionFactory();
    ??????? Session session = sessionFactory.openSession();
    ??????? Transaction transaction = session.beginTransaction();
    ??????? callBack.doing(session);
    ??????? transaction.commit();
    ??????? }
    ??? }
    when will Configuration serialize and why it's some field seted transient?the example will be error because some field transient is null after serialize.

    posted on 2006-10-30 16:40 R.Zeus 閱讀(366) 評論(0)  編輯  收藏 所屬分類: HibernateJ2SE
    主站蜘蛛池模板: 亚洲欧洲综合在线| 久久久久久成人毛片免费看| 国产免费av片在线无码免费看| 中文字幕av无码无卡免费| 亚洲AV无码国产剧情| 综合一区自拍亚洲综合图区| 国产精品偷伦视频免费观看了| 亚洲成在人线电影天堂色| 亚洲制服丝袜中文字幕| 亚洲AV日韩综合一区| 免费可以在线看A∨网站| 日韩亚洲精品福利| 亚洲国产AV无码专区亚洲AV| 亚洲欧洲日韩不卡| 亚洲精品无码久久久久YW| 四虎永久在线精品免费一区二区 | 日本免费人成视频播放| 国产高清视频在线免费观看| 午夜视频在线观看免费完整版| 一级成人a毛片免费播放| 久久精品国产亚洲综合色| 久久久久久久国产免费看| 黄色片在线免费观看| 亚洲日韩精品一区二区三区| 亚洲jjzzjjzz在线观看| 久久精品国产影库免费看| 免费看少妇作爱视频| 亚洲精品视频在线| 国产va免费精品观看精品| 亚洲成av人片天堂网无码】| 日本片免费观看一区二区| 亚洲精品中文字幕无码蜜桃 | 国产av天堂亚洲国产av天堂 | 222www在线观看免费| 亚洲成片观看四虎永久| 亚洲最大的成人网| 久久精品免费一区二区喷潮| 国产亚洲综合视频| 免费看少妇作爱视频| a在线免费观看视频| 免费**毛片在线播放直播|