📄 xml.po
字号:
#, fuzzymsgid ""msgstr """PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n""Last-Translator: FULL NAME <EMAIL@ADDRESS>\n""Content-Type: text/plain; charset=utf-8\n"#: index.docbook:5msgid "XML Mapping"msgstr "Mapeo XML"#: index.docbook:7msgid """Note that this is an experimental feature in Hibernate 3.0 and is under ""extremely active development."msgstr """Nota que esta es una funcionalidad experimental en Hibernate 3.0 y está bajo ""un desarrollo extremadamente activo."#: index.docbook:13msgid "Working with XML data"msgstr "Trabajando con datos XML"#: index.docbook:15msgid """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 """Hibernate te permite trabajar con datos XML persistentes en casi la misma ""forma que trabajas con POJOs persistentes. Un árbol XML analizado (parsed) ""puede ser pensado como sólo otra forma de representar los datos relacionales ""a nivel de objetos, en vez de POJOs."#: index.docbook:22msgid """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 """Hibernate soporta dom4j como API para manipular árboles XML. Puedes escribir ""consultas que traigan árboles dom4j de la base de datos y tener cualquier ""modificación que hagas al árbol sincronizada automáticamente a la base de ""datos. Puedes incluso tomar un documento XML, analizarlo usando dom4j, y ""escribirlo a la base de datos con cualquiera de las operaciones básicas de ""Hibernate: <literal>persist(), saveOrUpdate(), merge(), delete(), replicate()""</literal> (la fusión no está aún soportada)."#: index.docbook:32msgid """This feature has many applications including data import/export, ""externalization of entity data via JMS or SOAP and XSLT-based reporting."msgstr """Esta funcionalidad tiene muchas aplicaciones incluyendo la importación/""exportación de datos, externalización de datos de entidad vía JMS o SOAP y ""reportes basados en XSLT."#: index.docbook:37msgid """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 """Un solo mapeo puede ser usado para mapear simultáneamente las propiedades de ""una clase y los nodos de un documento XML a la base de datos, o, si no hay ""ninguna clase a mapear, puede ser usado para mapear sólo el XML."#: index.docbook:44msgid "Specifying XML and class mapping together"msgstr "Especificando los mapeos de XML y de clase juntos"#: index.docbook:46msgid "Here is an example of mapping a POJO and XML simultaneously:"msgstr "He aquí un ejemplo de mapear un POJO y XML simultáneamente:"#: index.docbook:50msgid """<![CDATA[<class name=\"Account\" \n"" table=\"ACCOUNTS\" \n"" node=\"account\">\n"" \n"" <id name=\"accountId\" \n"" column=\"ACCOUNT_ID\" \n"" node=\"@id\"/>\n"" \n"" <many-to-one name=\"customer\" \n"" column=\"CUSTOMER_ID\" \n"" node=\"customer/@id\" \n"" embed-xml=\"false\"/>\n"" \n"" <property name=\"balance\" \n"" column=\"BALANCE\" \n"" node=\"balance\"/>\n"" \n"" ...\n"" \n""</class>]]>"msgstr """<![CDATA[<class name=\"Account\" \n"" table=\"ACCOUNTS\" \n"" node=\"account\">\n"" \n"" <id name=\"accountId\" \n"" column=\"ACCOUNT_ID\" \n"" node=\"@id\"/>\n"" \n"" <many-to-one name=\"customer\" \n"" column=\"CUSTOMER_ID\" \n"" node=\"customer/@id\" \n"" embed-xml=\"false\"/>\n"" \n"" <property name=\"balance\" \n"" column=\"BALANCE\" \n"" node=\"balance\"/>\n"" \n"" ...\n"" \n""</class>]]>"#: index.docbook:54msgid "Specifying only an XML mapping"msgstr "Especificando sólo un mapeo XML"#: index.docbook:56msgid "Here is an example where there is no POJO class:"msgstr "He aquí un ejemplo donde no hay ninguna clase POJO:"#: index.docbook:60msgid """<![CDATA[<class entity-name=\"Account\" \n"" table=\"ACCOUNTS\" \n"" node=\"account\">\n"" \n"" <id name=\"id\" \n"" column=\"ACCOUNT_ID\" \n"" node=\"@id\" \n"" type=\"string\"/>\n"" \n"" <many-to-one name=\"customerId\" \n"" column=\"CUSTOMER_ID\" \n"" node=\"customer/@id\" \n"" embed-xml=\"false\" \n"" entity-name=\"Customer\"/>\n"" \n"" <property name=\"balance\" \n"" column=\"BALANCE\" \n"" node=\"balance\" \n"" type=\"big_decimal\"/>\n"" \n"" ...\n"" \n""</class>]]>"msgstr """<![CDATA[<class entity-name=\"Account\" \n"" table=\"ACCOUNTS\" \n"" node=\"account\">\n"" \n"" <id name=\"id\" \n"" column=\"ACCOUNT_ID\" \n"" node=\"@id\" \n"" type=\"string\"/>\n"" \n"" <many-to-one name=\"customerId\" \n"" column=\"CUSTOMER_ID\" \n"" node=\"customer/@id\" \n"" embed-xml=\"false\" \n"" entity-name=\"Customer\"/>\n"" \n"" <property name=\"balance\" \n"" column=\"BALANCE\" \n"" node=\"balance\" \n"" type=\"big_decimal\"/>\n"" \n"" ...\n"" \n""</class>]]>"#: index.docbook:62msgid """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 """Este mapeo te permite acceder a los datos como un árbol dom4j, o como un ""grafo de pares nombre/valor de propiedad (<literal>Map</literal>s de Java). ""Los nombres de propiedades son construcciones puramente lógicas a las que se ""puede hacer referencia en consultas HQL."#: index.docbook:73msgid "XML mapping metadata"msgstr "Mapeo de metadatos XML"#: index.docbook:75msgid """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 """Muchos elementos de mapeo de Hibernate aceptan el atributo <literal>node</""literal>. Esto te permite espcificar el nombre de un atributo o elemento XML ""que contenga los datos de la propiedad o entidad. El formato del atributo ""<literal>node</literal> debe ser uno de los siguientes:"#: index.docbook:84msgid "<literal>\"element-name\"</literal> - map to the named XML element"msgstr "<literal>\"element-name\"</literal> - mapea al elemento XML mencionado"#: index.docbook:87msgid "<literal>\"@attribute-name\"</literal> - map to the named XML attribute"msgstr """<literal>\"@attribute-name\"</literal> - mapea al atributo XML mencionado"#: index.docbook:90msgid "<literal>\".\"</literal> - map to the parent element"msgstr "<literal>\".\"</literal> - mapea al elemento padre"#: index.docbook:93msgid """<literal>\"element-name/@attribute-name\"</literal> - map to the named ""attribute of the named element"msgstr """<literal>\"element-name/@attribute-name\"</literal> - mapea al atributo ""mencionado del elemento mencionado"#: index.docbook:100msgid """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 """Para las colecciones y asociaciones monovaluadas, existe un atributo ""adicional <literal>embed-xml</literal>. Si <literal>embed-xml=\"true\"</""literal>, que es el valor por defecto, el árbol XML para la entidad asociada ""(o colección de tipo de valor) será embebida directamente en el árbol XML ""para la entidad que posee la asociación. En otro caso, si <literal>embed-xml=""\"false\"</literal>, sólo el valor identificador referenciado aparecerá en ""el XML para asociaciones de punto único y para las colecciones simplemente ""no aparecerá en absoluto."#: index.docbook:110msgid """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 """¡Debes ser cuidadoso de no dejar <literal>embed-xml=\"true\"</literal> para ""demasiadas asociaciones, ya que XML no trata bien la circularidad!"#: index.docbook:115msgid """<![CDATA[<class name=\"Customer\" \n"" table=\"CUSTOMER\" \n"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -