⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 xml.pot

📁 hibernate 开源框架的代码 jar包希望大家能喜欢
💻 POT
字号:
msgid ""msgstr """Project-Id-Version: PACKAGE VERSION\n""POT-Creation-Date: 2007-10-19 10:35-0500\n""PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n""Last-Translator: FULL NAME <EMAIL@ADDRESS>\n""Language-Team: LANGUAGE <LL@li.org>\n""MIME-Version: 1.0\n""Content-Type: text/plain; charset=UTF-8\n""Content-Transfer-Encoding: 8bit\n"#: xml.xml:5(title) msgid "XML Mapping"msgstr ""#: xml.xml:7(emphasis) msgid "Note that this is an experimental feature in Hibernate 3.0 and is under extremely active development."msgstr ""#: xml.xml:13(title) msgid "Working with XML data"msgstr ""#: xml.xml:15(para) msgid "Hibernate lets you work with persistent XML data in much the same way you work with persistent POJOs. A parsed XML tree can be thought of as just another way to represent the relational data at the object level, instead of POJOs."msgstr ""#: xml.xml:22(para) msgid "Hibernate supports dom4j as API for manipulating XML trees. You can write queries that retrieve dom4j trees from the database and have any modification you make to the tree automatically synchronized to the database. You can even take an XML document, parse it using dom4j, and write it to the database with any of Hibernate's basic operations: <literal>persist(), saveOrUpdate(), merge(), delete(), replicate()</literal> (merging is not yet supported)."msgstr ""#: xml.xml:32(para) msgid "This feature has many applications including data import/export, externalization of entity data via JMS or SOAP and XSLT-based reporting."msgstr ""#: xml.xml:37(para) msgid "A single mapping may be used to simultaneously map properties of a class and nodes of an XML document to the database, or, if there is no class to map, it may be used to map just the XML."msgstr ""#: xml.xml:44(title) msgid "Specifying XML and class mapping together"msgstr ""#: xml.xml:46(para) msgid "Here is an example of mapping a POJO and XML simultaneously:"msgstr ""#: xml.xml:73(title) msgid "Specifying only an XML mapping"msgstr ""#: xml.xml:75(para) msgid "Here is an example where there is no POJO class:"msgstr ""#: xml.xml:103(para) msgid "This mapping allows you to access the data as a dom4j tree, or as a graph of property name/value pairs (java <literal>Map</literal>s). The property names are purely logical constructs that may be referred to in HQL queries."msgstr ""#: xml.xml:114(title) msgid "XML mapping metadata"msgstr ""#: xml.xml:116(para) msgid "Many Hibernate mapping elements accept the <literal>node</literal> attribute. This let's you specify the name of an XML attribute or element that holds the property or entity data. The format of the <literal>node</literal> attribute must be one of the following:"msgstr ""#: xml.xml:125(para) msgid "<literal>\"element-name\"</literal> - map to the named XML element"msgstr ""#: xml.xml:128(para) msgid "<literal>\"@attribute-name\"</literal> - map to the named XML attribute"msgstr ""#: xml.xml:131(para) msgid "<literal>\".\"</literal> - map to the parent element"msgstr ""#: xml.xml:134(para) msgid "<literal>\"element-name/@attribute-name\"</literal> - map to the named attribute of the named element"msgstr ""#: xml.xml:141(para) msgid "For collections and single valued associations, there is an additional <literal>embed-xml</literal> attribute. If <literal>embed-xml=\"true\"</literal>, the default, the XML tree for the associated entity (or collection of value type) will be embedded directly in the XML tree for the entity that owns the association. Otherwise, if <literal>embed-xml=\"false\"</literal>, then only the referenced identifier value will appear in the XML for single point associations and collections will simply not appear at all."msgstr ""#: xml.xml:151(para) msgid "You should be careful not to leave <literal>embed-xml=\"true\"</literal> for too many associations, since XML does not deal well with circularity!"msgstr ""#: xml.xml:191(para) msgid "in this case, we have decided to embed the collection of account ids, but not the actual account data. The following HQL query:"msgstr ""#: xml.xml:198(para) msgid "Would return datasets such as this:"msgstr ""#: xml.xml:213(para) msgid "If you set <literal>embed-xml=\"true\"</literal> on the <literal>&lt;one-to-many&gt;</literal> mapping, the data might look more like this:"msgstr ""#: xml.xml:239(title) msgid "Manipulating XML data"msgstr ""#: xml.xml:241(para) msgid "Let's rearead and update XML documents in the application. We do this by obtaining a dom4j session:"msgstr ""#: xml.xml:281(para) msgid "It is extremely useful to combine this feature with Hibernate's <literal>replicate()</literal> operation to implement XML-based data import/export."msgstr ""#. Put one translator per line, in the form of NAME <EMAIL>, YEAR1, YEAR2.#: xml.xml:0(None) msgid "translator-credits"msgstr ""

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -