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

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

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

    kapok

    垃圾桶,嘿嘿,我藏的這么深你們還能找到啊,真牛!

      BlogJava :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理 ::
      455 隨筆 :: 0 文章 :: 76 評論 :: 0 Trackbacks

    http://www.hibernate.org/218.html

    HyperJAXB - relational persistence for XML objects with JAXB and Hibernate

    What is HyperJAXB?

    HyperJAXB is an add-on for Sun's reference implementation of JAXB (Java Architecture for XML Binding). It provides JAXB objects with relational persistence layer using Hibernate.

    What can I do with HyperJAXB?

    HyperJAXB eases usage of XML with relational databases. With HyperJAXB you can combine JAXB and Hibernate to implement one of the following target usage scenarios:

    • load (unmarshal) object structure from XML document and save (persist) these objects in a relational database;
    • load objects from a relational database and present (marshal) loaded objects in XML form;
    • query relational database using HQL and present query results in XML.

    How it works?

    JAXB is basically a code generation engine. It accepts a schematic definition of you XML documents (usually in the form of an XML Schema) as input and generates source code of XML-enabled classes. HyperJAXB augments generated code by adding Hibernate XDoclet annotations. Added annotations effectively define Hibernate O/R mapping for the generated classes.

    Combination of JAXB RI, HyperJAXB and Hibernate toolset allows you automatically generate the following artifacts out of you XML Schema:

    • source code of XML-enabled objects with Hibernate XDoclet annotations;
    • object/relational mapping for Hibernate;
    • database schema for the target database.

    Please see the reference for more information.

    A code example?

    Unmarshalling and saving:

    // Unmarshall the document
    final MyObject myObject = (MyObject) unmarshaller.unmarshal(document);
    
    // Open the session, save object into the database
    final Session saveSession = sessionFactory.openSession();
    // Save id for the later use
    final String id = saveSession.save(myObject);
    saveSession.flush();
    // Close the session
    saveSession.close()
    

    Loading and marshalling:

    // Open the session, load the object
    final Session loadSession = sessionFactory.openSession();
    final MyObject myLoadedObject = (MyObject) loadSession.load(MyObject.class, id);
    loadSession.close();
    
    // Marshall loaded object into the document
    final Document loadedDocument = documentBuilder.newDocument();
    marshaller.marshal(myLoadedObject, loadedDocument);
    

    Mapping generated by HyperJAXB ensures that document and loadedDocument are identical.

    Where can I find it?

    Check out this project on https://hyperjaxb.dev.java.net.

    posted on 2005-05-24 20:30 笨笨 閱讀(607) 評論(0)  編輯  收藏 所屬分類: J2EEHibernateAndSpringALL
    主站蜘蛛池模板: 四虎影视永久免费观看网址 | 亚洲精品中文字幕无码AV| 日韩在线一区二区三区免费视频| 国产成人免费ā片在线观看| 亚洲夂夂婷婷色拍WW47| 最近中文字幕mv免费高清视频7 | 久久无码av亚洲精品色午夜| 好男人看视频免费2019中文| 亚洲七久久之综合七久久| 免费看无码自慰一区二区| 亚洲AV无码精品国产成人| 国产一区二区三区在线免费观看| 美女黄频视频大全免费的| 亚洲av高清在线观看一区二区| 粉色视频在线观看www免费| 免费观看国产小粉嫩喷水| 色爽黄1000部免费软件下载| 中文字幕日韩亚洲| 久操视频在线免费观看| 亚洲国产av美女网站| 免费观看的a级毛片的网站| 国产亚洲成在线播放va| 亚洲综合区小说区激情区| 最近中文字幕大全免费版在线| 亚洲色图在线观看| 在线观看视频免费完整版| 亚洲AV一区二区三区四区| 亚洲午夜久久久久久久久久| 99爱免费观看视频在线| 亚洲欧美aⅴ在线资源| 久久精品国产精品亚洲人人| 全部免费毛片在线播放| 亚洲色丰满少妇高潮18p| 亚洲精品tv久久久久久久久久| 久操视频免费观看| 亚洲精品无码专区| 亚洲乱码一区二区三区在线观看| 免费A级毛片无码A∨免费| 亚洲av成人无码网站…| 亚洲AV无码成人精品区天堂| 成年女人免费v片|