[jboss-cvs] JBossAS SVN: r96635 - projects/docs/enterprise/5.0/Hibernate/Hibernate_Core/zh-CN.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Fri Nov 20 03:37:25 EST 2009


Author: xhuang at jboss.com
Date: 2009-11-20 03:37:25 -0500 (Fri, 20 Nov 2009)
New Revision: 96635

Modified:
   projects/docs/enterprise/5.0/Hibernate/Hibernate_Core/zh-CN/example_mappings.po
   projects/docs/enterprise/5.0/Hibernate/Hibernate_Core/zh-CN/example_parentchild.po
   projects/docs/enterprise/5.0/Hibernate/Hibernate_Core/zh-CN/example_weblog.po
Log:
update

Modified: projects/docs/enterprise/5.0/Hibernate/Hibernate_Core/zh-CN/example_mappings.po
===================================================================
--- projects/docs/enterprise/5.0/Hibernate/Hibernate_Core/zh-CN/example_mappings.po	2009-11-20 08:07:46 UTC (rev 96634)
+++ projects/docs/enterprise/5.0/Hibernate/Hibernate_Core/zh-CN/example_mappings.po	2009-11-20 08:37:25 UTC (rev 96635)
@@ -6,7 +6,7 @@
 "Project-Id-Version: Collection_Mapping\n"
 "Report-Msgid-Bugs-To: http://bugs.kde.org\n"
 "POT-Creation-Date: 2009-09-15 07:03+0000\n"
-"PO-Revision-Date: 2007-02-26 10:59+1000\n"
+"PO-Revision-Date: 2009-11-20 18:36+1000\n"
 "Last-Translator: Xi HUANG <xhuang at redhat.com>\n"
 "Language-Team:  <en at li.org>\n"
 "MIME-Version: 1.0\n"
@@ -22,9 +22,9 @@
 
 #. Tag: para
 #: example_mappings.xml:32
-#, fuzzy, no-c-format
+#, no-c-format
 msgid "This chapters explores some more complex association mappings."
-msgstr "本章展示了一些较为复杂的关系映射。"
+msgstr "本章展示了一些较为复杂的关系映射。 "
 
 #. Tag: title
 #: example_mappings.xml:37
@@ -34,28 +34,19 @@
 
 #. Tag: para
 #: example_mappings.xml:39
-#, fuzzy, no-c-format
-msgid ""
-"The following model of the relationship between <literal>Employer</literal> "
-"and <literal>Employee</literal> uses an entity class (<literal>Employment</"
-"literal>) to represent the association. You can do this when there might be "
-"more than one period of employment for the same two parties. Components are "
-"used to model monetary values and employee names."
-msgstr ""
-"下面关于 <literal>Employer</literal> 和 <literal>Employee</literal> 的关系模"
-"型使用了一个真实的实体类(<literal>Employment</literal>)来表述,这是因为对于"
-"相同的雇员和雇主可能会有多个雇佣时间段。对于金额和雇员姓名,用 Components 建"
-"模。"
+#, no-c-format
+msgid "The following model of the relationship between <literal>Employer</literal> and <literal>Employee</literal> uses an entity class (<literal>Employment</literal>) to represent the association. You can do this when there might be more than one period of employment for the same two parties. Components are used to model monetary values and employee names."
+msgstr "下面关于 <literal>Employer</literal> 和 <literal>Employee</literal> 的关系模型使用了一个真实的实体类(<literal>Employment</literal>)来表述,这是因为对于相同的雇员和雇主可能会有多个雇佣时间段。对于金额和雇员姓名,用 Components 建模。 "
 
 #. Tag: para
 #: example_mappings.xml:56
-#, fuzzy, no-c-format
+#, no-c-format
 msgid "Here is a possible mapping document:"
-msgstr "映射文件可能是这样:"
+msgstr "映射文件可能是这样: "
 
 #. Tag: programlisting
 #: example_mappings.xml:60
-#, fuzzy, no-c-format
+#, no-c-format
 msgid ""
 "<![CDATA[<hibernate-mapping>\n"
 "        \n"
@@ -85,10 +76,8 @@
 "            <property name=\"currency\" length=\"12\"/>\n"
 "        </component>\n"
 "\n"
-"        <many-to-one name=\"employer\" column=\"employer_id\" not-null=\"true"
-"\"/>\n"
-"        <many-to-one name=\"employee\" column=\"employee_id\" not-null=\"true"
-"\"/>\n"
+"        <many-to-one name=\"employer\" column=\"employer_id\" not-null=\"true\"/>\n"
+"        <many-to-one name=\"employee\" column=\"employee_id\" not-null=\"true\"/>\n"
 "\n"
 "    </class>\n"
 "\n"
@@ -108,70 +97,64 @@
 "\n"
 "</hibernate-mapping>]]>"
 msgstr ""
-"&lt;hibernate-mapping&gt;\n"
+"<![CDATA[<hibernate-mapping>\n"
 "        \n"
-"    &lt;class name=\"Employer\" table=\"employers\"&gt;\n"
-"        &lt;id name=\"id\"&gt;\n"
-"            &lt;generator class=\"sequence\"&gt;\n"
-"                &lt;param name=\"sequence\"&gt;employer_id_seq&lt;/"
-"param&gt;\n"
-"            &lt;/generator&gt;\n"
-"        &lt;/id&gt;\n"
-"        &lt;property name=\"name\"/&gt;\n"
-"    &lt;/class&gt;\n"
+"    <class name=\"Employer\" table=\"employers\">\n"
+"        <id name=\"id\">\n"
+"            <generator class=\"sequence\">\n"
+"                <param name=\"sequence\">employer_id_seq</param>\n"
+"            </generator>\n"
+"        </id>\n"
+"        <property name=\"name\"/>\n"
+"    </class>\n"
 "\n"
-"    &lt;class name=\"Employment\" table=\"employment_periods\"&gt;\n"
+"    <class name=\"Employment\" table=\"employment_periods\">\n"
 "\n"
-"        &lt;id name=\"id\"&gt;\n"
-"            &lt;generator class=\"sequence\"&gt;\n"
-"                &lt;param name=\"sequence\"&gt;employment_id_seq&lt;/"
-"param&gt;\n"
-"            &lt;/generator&gt;\n"
-"        &lt;/id&gt;\n"
-"        &lt;property name=\"startDate\" column=\"start_date\"/&gt;\n"
-"        &lt;property name=\"endDate\" column=\"end_date\"/&gt;\n"
+"        <id name=\"id\">\n"
+"            <generator class=\"sequence\">\n"
+"                <param name=\"sequence\">employment_id_seq</param>\n"
+"            </generator>\n"
+"        </id>\n"
+"        <property name=\"startDate\" column=\"start_date\"/>\n"
+"        <property name=\"endDate\" column=\"end_date\"/>\n"
 "\n"
-"        &lt;component name=\"hourlyRate\" class=\"MonetaryAmount\"&gt;\n"
-"            &lt;property name=\"amount\"&gt;\n"
-"                &lt;column name=\"hourly_rate\" sql-type=\"NUMERIC(12, 2)\"/"
-"&gt;\n"
-"            &lt;/property&gt;\n"
-"            &lt;property name=\"currency\" length=\"12\"/&gt;\n"
-"        &lt;/component&gt;\n"
+"        <component name=\"hourlyRate\" class=\"MonetaryAmount\">\n"
+"            <property name=\"amount\">\n"
+"                <column name=\"hourly_rate\" sql-type=\"NUMERIC(12, 2)\"/>\n"
+"            </property>\n"
+"            <property name=\"currency\" length=\"12\"/>\n"
+"        </component>\n"
 "\n"
-"        &lt;many-to-one name=\"employer\" column=\"employer_id\" not-null="
-"\"true\"/&gt;\n"
-"        &lt;many-to-one name=\"employee\" column=\"employee_id\" not-null="
-"\"true\"/&gt;\n"
+"        <many-to-one name=\"employer\" column=\"employer_id\" not-null=\"true\"/>\n"
+"        <many-to-one name=\"employee\" column=\"employee_id\" not-null=\"true\"/>\n"
 "\n"
-"    &lt;/class&gt;\n"
+"    </class>\n"
 "\n"
-"    &lt;class name=\"Employee\" table=\"employees\"&gt;\n"
-"        &lt;id name=\"id\"&gt;\n"
-"            &lt;generator class=\"sequence\"&gt;\n"
-"                &lt;param name=\"sequence\"&gt;employee_id_seq&lt;/"
-"param&gt;\n"
-"            &lt;/generator&gt;\n"
-"        &lt;/id&gt;\n"
-"        &lt;property name=\"taxfileNumber\"/&gt;\n"
-"        &lt;component name=\"name\" class=\"Name\"&gt;\n"
-"            &lt;property name=\"firstName\"/&gt;\n"
-"            &lt;property name=\"initial\"/&gt;\n"
-"            &lt;property name=\"lastName\"/&gt;\n"
-"        &lt;/component&gt;\n"
-"    &lt;/class&gt;\n"
+"    <class name=\"Employee\" table=\"employees\">\n"
+"        <id name=\"id\">\n"
+"            <generator class=\"sequence\">\n"
+"                <param name=\"sequence\">employee_id_seq</param>\n"
+"            </generator>\n"
+"        </id>\n"
+"        <property name=\"taxfileNumber\"/>\n"
+"        <component name=\"name\" class=\"Name\">\n"
+"            <property name=\"firstName\"/>\n"
+"            <property name=\"initial\"/>\n"
+"            <property name=\"lastName\"/>\n"
+"        </component>\n"
+"    </class>\n"
 "\n"
-"&lt;/hibernate-mapping&gt;"
+"</hibernate-mapping>]]>"
 
 #. Tag: para
 #: example_mappings.xml:62
-#, fuzzy, no-c-format
+#, no-c-format
 msgid "Here is the table schema generated by <literal>SchemaExport</literal>."
-msgstr "用 <literal>SchemaExport</literal> 生成表结构。"
+msgstr "用 <literal>SchemaExport</literal> 生成表结构。 "
 
 #. Tag: programlisting
 #: example_mappings.xml:66
-#, fuzzy, no-c-format
+#, no-c-format
 msgid ""
 "<![CDATA[create table employers (\n"
 "    id BIGINT not null, \n"
@@ -200,16 +183,14 @@
 ")\n"
 "\n"
 "alter table employment_periods \n"
-"    add constraint employment_periodsFK0 foreign key (employer_id) "
-"references employers\n"
+"    add constraint employment_periodsFK0 foreign key (employer_id) references employers\n"
 "alter table employment_periods \n"
-"    add constraint employment_periodsFK1 foreign key (employee_id) "
-"references employees\n"
+"    add constraint employment_periodsFK1 foreign key (employee_id) references employees\n"
 "create sequence employee_id_seq\n"
 "create sequence employment_id_seq\n"
 "create sequence employer_id_seq]]>"
 msgstr ""
-"create table employers (\n"
+"<![CDATA[create table employers (\n"
 "    id BIGINT not null, \n"
 "    name VARCHAR(255), \n"
 "    primary key (id)\n"
@@ -236,14 +217,12 @@
 ")\n"
 "\n"
 "alter table employment_periods \n"
-"    add constraint employment_periodsFK0 foreign key (employer_id) "
-"references employers\n"
+"    add constraint employment_periodsFK0 foreign key (employer_id) references employers\n"
 "alter table employment_periods \n"
-"    add constraint employment_periodsFK1 foreign key (employee_id) "
-"references employees\n"
+"    add constraint employment_periodsFK1 foreign key (employee_id) references employees\n"
 "create sequence employee_id_seq\n"
 "create sequence employment_id_seq\n"
-"create sequence employer_id_seq"
+"create sequence employer_id_seq]]>"
 
 #. Tag: title
 #: example_mappings.xml:71
@@ -253,32 +232,19 @@
 
 #. Tag: para
 #: example_mappings.xml:73
-#, fuzzy, no-c-format
-msgid ""
-"Consider the following model of the relationships between <literal>Work</"
-"literal>, <literal>Author</literal> and <literal>Person</literal>. In the "
-"example, the relationship between <literal>Work</literal> and "
-"<literal>Author</literal> is represented as a many-to-many association and "
-"the relationship between <literal>Author</literal> and <literal>Person</"
-"literal> is represented as one-to-one association. Another possibility would "
-"be to have <literal>Author</literal> extend <literal>Person</literal>."
-msgstr ""
-"考虑下面的 <literal>Work</literal>,<literal>Author</literal> 和 "
-"<literal>Person</literal> 模型的关系。我们用多对多关系来描述 <literal>Work</"
-"literal> 和 <literal>Author</literal>,用一对一关系来描述 <literal>Author</"
-"literal> 和 <literal>Person</literal>,另一种可能性是 <literal>Author</"
-"literal> 继承 <literal>Person</literal>。"
+#, no-c-format
+msgid "Consider the following model of the relationships between <literal>Work</literal>, <literal>Author</literal> and <literal>Person</literal>. In the example, the relationship between <literal>Work</literal> and <literal>Author</literal> is represented as a many-to-many association and the relationship between <literal>Author</literal> and <literal>Person</literal> is represented as one-to-one association. Another possibility would be to have <literal>Author</literal> extend <literal>Person</literal>."
+msgstr "考虑下面的 <literal>Work</literal>,<literal>Author</literal> 和 <literal>Person</literal> 模型的关系。我们用多对多关系来描述 <literal>Work</literal> 和 <literal>Author</literal>,用一对一关系来描述 <literal>Author</literal> 和 <literal>Person</literal>,另一种可能性是 <literal>Author</literal> 继承 <literal>Person</literal>。 "
 
 #. Tag: para
 #: example_mappings.xml:91
 #, no-c-format
-msgid ""
-"The following mapping document correctly represents these relationships:"
+msgid "The following mapping document correctly represents these relationships:"
 msgstr "下面的映射文件正确的描述了这些关系:"
 
 #. Tag: programlisting
 #: example_mappings.xml:95
-#, fuzzy, no-c-format
+#, no-c-format
 msgid ""
 "<![CDATA[<hibernate-mapping>\n"
 "\n"
@@ -332,78 +298,67 @@
 "\n"
 "</hibernate-mapping>]]>"
 msgstr ""
-"&lt;hibernate-mapping&gt;\n"
+"<![CDATA[<hibernate-mapping>\n"
 "\n"
-"    &lt;class name=\"Work\" table=\"works\" discriminator-value=\"W\"&gt;\n"
+"    <class name=\"Work\" table=\"works\" discriminator-value=\"W\">\n"
 "\n"
-"        &lt;id name=\"id\" column=\"id\"&gt;\n"
-"            &lt;generator class=\"native\"/&gt;\n"
-"        &lt;/id&gt;\n"
-"        &lt;discriminator column=\"type\" type=\"character\"/&gt;\n"
+"        <id name=\"id\" column=\"id\">\n"
+"            <generator class=\"native\"/>\n"
+"        </id>\n"
+"        <discriminator column=\"type\" type=\"character\"/>\n"
 "\n"
-"        &lt;property name=\"title\"/&gt;\n"
-"        &lt;set name=\"authors\" table=\"author_work\"&gt;\n"
-"            &lt;key column name=\"work_id\"/&gt;\n"
-"            &lt;many-to-many class=\"Author\" column name=\"author_id\"/"
-"&gt;\n"
-"        &lt;/set&gt;\n"
+"        <property name=\"title\"/>\n"
+"        <set name=\"authors\" table=\"author_work\">\n"
+"            <key column name=\"work_id\"/>\n"
+"            <many-to-many class=\"Author\" column name=\"author_id\"/>\n"
+"        </set>\n"
 "\n"
-"        &lt;subclass name=\"Book\" discriminator-value=\"B\"&gt;\n"
-"            &lt;property name=\"text\"/&gt;\n"
-"        &lt;/subclass&gt;\n"
+"        <subclass name=\"Book\" discriminator-value=\"B\">\n"
+"            <property name=\"text\"/>\n"
+"        </subclass>\n"
 "\n"
-"        &lt;subclass name=\"Song\" discriminator-value=\"S\"&gt;\n"
-"            &lt;property name=\"tempo\"/&gt;\n"
-"            &lt;property name=\"genre\"/&gt;\n"
-"        &lt;/subclass&gt;\n"
+"        <subclass name=\"Song\" discriminator-value=\"S\">\n"
+"            <property name=\"tempo\"/>\n"
+"            <property name=\"genre\"/>\n"
+"        </subclass>\n"
 "\n"
-"    &lt;/class&gt;\n"
+"    </class>\n"
 "\n"
-"    &lt;class name=\"Author\" table=\"authors\"&gt;\n"
+"    <class name=\"Author\" table=\"authors\">\n"
 "\n"
-"        &lt;id name=\"id\" column=\"id\"&gt;\n"
-"            &lt;!-- The Author must have the same identifier as the Person --"
-"&gt;\n"
-"            &lt;generator class=\"assigned\"/&gt; \n"
-"        &lt;/id&gt;\n"
+"        <id name=\"id\" column=\"id\">\n"
+"            <!-- The Author must have the same identifier as the Person -->\n"
+"            <generator class=\"assigned\"/> \n"
+"        </id>\n"
 "\n"
-"        &lt;property name=\"alias\"/&gt;\n"
-"        &lt;one-to-one name=\"person\" constrained=\"true\"/&gt;\n"
+"        <property name=\"alias\"/>\n"
+"        <one-to-one name=\"person\" constrained=\"true\"/>\n"
 "\n"
-"        &lt;set name=\"works\" table=\"author_work\" inverse=\"true\"&gt;\n"
-"            &lt;key column=\"author_id\"/&gt;\n"
-"            &lt;many-to-many class=\"Work\" column=\"work_id\"/&gt;\n"
-"        &lt;/set&gt;\n"
+"        <set name=\"works\" table=\"author_work\" inverse=\"true\">\n"
+"            <key column=\"author_id\"/>\n"
+"            <many-to-many class=\"Work\" column=\"work_id\"/>\n"
+"        </set>\n"
 "\n"
-"    &lt;/class&gt;\n"
+"    </class>\n"
 "\n"
-"    &lt;class name=\"Person\" table=\"persons\"&gt;\n"
-"        &lt;id name=\"id\" column=\"id\"&gt;\n"
-"            &lt;generator class=\"native\"/&gt;\n"
-"        &lt;/id&gt;\n"
-"        &lt;property name=\"name\"/&gt;\n"
-"    &lt;/class&gt;\n"
+"    <class name=\"Person\" table=\"persons\">\n"
+"        <id name=\"id\" column=\"id\">\n"
+"            <generator class=\"native\"/>\n"
+"        </id>\n"
+"        <property name=\"name\"/>\n"
+"    </class>\n"
 "\n"
-"&lt;/hibernate-mapping&gt;"
+"</hibernate-mapping>]]>"
 
 #. Tag: para
 #: example_mappings.xml:97
-#, fuzzy, no-c-format
-msgid ""
-"There are four tables in this mapping: <literal>works</literal>, "
-"<literal>authors</literal> and <literal>persons</literal> hold work, author "
-"and person data respectively. <literal>author_work</literal> is an "
-"association table linking authors to works. Here is the table schema, as "
-"generated by <literal>SchemaExport</literal>:"
-msgstr ""
-"映射中有 4 个表。<literal>works</literal>,<literal>authors</literal> 和 "
-"<literal>persons</literal> 分别保存着 work,author 和 person 的数据。"
-"<literal>author_work</literal> 是 authors 和 works 的关联表。表结构是由 "
-"<literal>SchemaExport</literal> 生成的。"
+#, no-c-format
+msgid "There are four tables in this mapping: <literal>works</literal>, <literal>authors</literal> and <literal>persons</literal> hold work, author and person data respectively. <literal>author_work</literal> is an association table linking authors to works. Here is the table schema, as generated by <literal>SchemaExport</literal>:"
+msgstr "映射中有 4 个表。<literal>works</literal>,<literal>authors</literal> 和 <literal>persons</literal> 分别保存着 work,author 和 person 的数据。<literal>author_work</literal> 是 authors 和 works 的关联表。表结构是由 <literal>SchemaExport</literal> 生成的:"
 
 #. Tag: programlisting
 #: example_mappings.xml:105
-#, fuzzy, no-c-format
+#, no-c-format
 msgid ""
 "<![CDATA[create table works (\n"
 "    id BIGINT not null generated by default as identity, \n"
@@ -436,12 +391,11 @@
 "alter table authors \n"
 "    add constraint authorsFK0 foreign key (id) references persons\n"
 "alter table author_work \n"
-"    add constraint author_workFK0 foreign key (author_id) references "
-"authors\n"
+"    add constraint author_workFK0 foreign key (author_id) references authors\n"
 "alter table author_work\n"
 "    add constraint author_workFK1 foreign key (work_id) references works]]>"
 msgstr ""
-"create table works (\n"
+"<![CDATA[create table works (\n"
 "    id BIGINT not null generated by default as identity, \n"
 "    tempo FLOAT, \n"
 "    genre VARCHAR(255), \n"
@@ -472,10 +426,9 @@
 "alter table authors \n"
 "    add constraint authorsFK0 foreign key (id) references persons\n"
 "alter table author_work \n"
-"    add constraint author_workFK0 foreign key (author_id) references "
-"authors\n"
+"    add constraint author_workFK0 foreign key (author_id) references authors\n"
 "alter table author_work\n"
-"    add constraint author_workFK1 foreign key (work_id) references works"
+"    add constraint author_workFK1 foreign key (work_id) references works]]>"
 
 #. Tag: title
 #: example_mappings.xml:110
@@ -485,35 +438,19 @@
 
 #. Tag: para
 #: example_mappings.xml:112
-#, fuzzy, no-c-format
-msgid ""
-"In this section we consider a model of the relationships between "
-"<literal>Customer</literal>, <literal>Order</literal>, <literal>Line Item</"
-"literal> and <literal>Product</literal>. There is a one-to-many association "
-"between <literal>Customer</literal> and <literal>Order</literal>, but how "
-"can you represent <literal>Order</literal> / <literal>LineItem</literal> / "
-"<literal>Product</literal>? In the example, <literal>LineItem</literal> is "
-"mapped as an association class representing the many-to-many association "
-"between <literal>Order</literal> and <literal>Product</literal>. In "
-"Hibernate this is called a composite element."
-msgstr ""
-"现在来考虑 <literal>Customer</literal>,<literal>Order</literal>, "
-"<literal>LineItem</literal> 和 <literal>Product</literal> 关系的模型。"
-"<literal>Customer</literal> 和 <literal>Order</literal> 之间 是一对多的关系,"
-"但是我们怎么来描述 <literal>Order</literal> / <literal>LineItem</literal> / "
-"<literal>Product</literal>呢? 我可以把 <literal>LineItem</literal> 作为描述 "
-"<literal>Order</literal> 和  <literal>Product</literal> 多对多关系的关联类,"
-"在 Hibernate,这叫做组合元素。"
+#, no-c-format
+msgid "In this section we consider a model of the relationships between <literal>Customer</literal>, <literal>Order</literal>, <literal>Line Item</literal> and <literal>Product</literal>. There is a one-to-many association between <literal>Customer</literal> and <literal>Order</literal>, but how can you represent <literal>Order</literal> / <literal>LineItem</literal> / <literal>Product</literal>? In the example, <literal>LineItem</literal> is mapped as an association class representing the many-to-many association between <literal>Order</literal> and <literal>Product</literal>. In Hibernate this is called a composite element."
+msgstr "现在来考虑 <literal>Customer</literal>,<literal>Order</literal>, <literal>LineItem</literal> 和 <literal>Product</literal> 关系的模型。<literal>Customer</literal> 和 <literal>Order</literal> 之间 是一对多的关系,但是我们怎么来描述 <literal>Order</literal> / <literal>LineItem</literal> / <literal>Product</literal>呢? 我可以把 <literal>LineItem</literal> 作为描述 <literal>Order</literal> 和  <literal>Product</literal> 多对多关系的关联类,在 Hibernate,这叫做组合元素。 "
 
 #. Tag: para
 #: example_mappings.xml:132
-#, fuzzy, no-c-format
+#, no-c-format
 msgid "The mapping document will look like this:"
-msgstr "映射文件如下:"
+msgstr "映射文件如下: "
 
 #. Tag: programlisting
 #: example_mappings.xml:136
-#, fuzzy, no-c-format
+#, no-c-format
 msgid ""
 "<![CDATA[<hibernate-mapping>\n"
 "\n"
@@ -553,61 +490,53 @@
 "\n"
 "</hibernate-mapping>]]>"
 msgstr ""
-"&lt;hibernate-mapping&gt;\n"
+"<![CDATA[<hibernate-mapping>\n"
 "\n"
-"    &lt;class name=\"Customer\" table=\"customers\"&gt;\n"
-"        &lt;id name=\"id\"&gt;\n"
-"            &lt;generator class=\"native\"/&gt;\n"
-"        &lt;/id&gt;\n"
-"        &lt;property name=\"name\"/&gt;\n"
-"        &lt;set name=\"orders\" inverse=\"true\"&gt;\n"
-"            &lt;key column=\"customer_id\"/&gt;\n"
-"            &lt;one-to-many class=\"Order\"/&gt;\n"
-"        &lt;/set&gt;\n"
-"    &lt;/class&gt;\n"
+"    <class name=\"Customer\" table=\"customers\">\n"
+"        <id name=\"id\">\n"
+"            <generator class=\"native\"/>\n"
+"        </id>\n"
+"        <property name=\"name\"/>\n"
+"        <set name=\"orders\" inverse=\"true\">\n"
+"            <key column=\"customer_id\"/>\n"
+"            <one-to-many class=\"Order\"/>\n"
+"        </set>\n"
+"    </class>\n"
 "\n"
-"    &lt;class name=\"Order\" table=\"orders\"&gt;\n"
-"        &lt;id name=\"id\"&gt;\n"
-"            &lt;generator class=\"native\"/&gt;\n"
-"        &lt;/id&gt;\n"
-"        &lt;property name=\"date\"/&gt;\n"
-"        &lt;many-to-one name=\"customer\" column=\"customer_id\"/&gt;\n"
-"        &lt;list name=\"lineItems\" table=\"line_items\"&gt;\n"
-"            &lt;key column=\"order_id\"/&gt;\n"
-"            &lt;list-index column=\"line_number\"/&gt;\n"
-"            &lt;composite-element class=\"LineItem\"&gt;\n"
-"                &lt;property name=\"quantity\"/&gt;\n"
-"                &lt;many-to-one name=\"product\" column=\"product_id\"/&gt;\n"
-"            &lt;/composite-element&gt;\n"
-"        &lt;/list&gt;\n"
-"    &lt;/class&gt;\n"
+"    <class name=\"Order\" table=\"orders\">\n"
+"        <id name=\"id\">\n"
+"            <generator class=\"native\"/>\n"
+"        </id>\n"
+"        <property name=\"date\"/>\n"
+"        <many-to-one name=\"customer\" column=\"customer_id\"/>\n"
+"        <list name=\"lineItems\" table=\"line_items\">\n"
+"            <key column=\"order_id\"/>\n"
+"            <list-index column=\"line_number\"/>\n"
+"            <composite-element class=\"LineItem\">\n"
+"                <property name=\"quantity\"/>\n"
+"                <many-to-one name=\"product\" column=\"product_id\"/>\n"
+"            </composite-element>\n"
+"        </list>\n"
+"    </class>\n"
 "\n"
-"    &lt;class name=\"Product\" table=\"products\"&gt;\n"
-"        &lt;id name=\"id\"&gt;\n"
-"            &lt;generator class=\"native\"/&gt;\n"
-"        &lt;/id&gt;\n"
-"        &lt;property name=\"serialNumber\"/&gt;\n"
-"    &lt;/class&gt;\n"
+"    <class name=\"Product\" table=\"products\">\n"
+"        <id name=\"id\">\n"
+"            <generator class=\"native\"/>\n"
+"        </id>\n"
+"        <property name=\"serialNumber\"/>\n"
+"    </class>\n"
 "\n"
-"&lt;/hibernate-mapping&gt;"
+"</hibernate-mapping>]]>"
 
 #. Tag: para
 #: example_mappings.xml:138
 #, no-c-format
-msgid ""
-"<literal>customers</literal>, <literal>orders</literal>, "
-"<literal>line_items</literal> and <literal>products</literal> hold customer, "
-"order, order line item and product data respectively. <literal>line_items</"
-"literal> also acts as an association table linking orders with products."
-msgstr ""
-"<literal>customers</literal>,<literal>orders</literal>,"
-"<literal>line_items</literal> 和  <literal>products</literal> 分别保存着 "
-"customer,order,order line item 和 product 的数据。 <literal>line_items</"
-"literal> 也作为连接 orders 和 products 的关联表。"
+msgid "<literal>customers</literal>, <literal>orders</literal>, <literal>line_items</literal> and <literal>products</literal> hold customer, order, order line item and product data respectively. <literal>line_items</literal> also acts as an association table linking orders with products."
+msgstr "<literal>customers</literal>,<literal>orders</literal>,<literal>line_items</literal> 和  <literal>products</literal> 分别保存着 customer,order,order line item 和 product 的数据。 <literal>line_items</literal> 也作为连接 orders 和 products 的关联表。"
 
 #. Tag: programlisting
 #: example_mappings.xml:145
-#, fuzzy, no-c-format
+#, no-c-format
 msgid ""
 "<![CDATA[create table customers (\n"
 "    id BIGINT not null generated by default as identity, \n"
@@ -639,12 +568,11 @@
 "alter table orders \n"
 "    add constraint ordersFK0 foreign key (customer_id) references customers\n"
 "alter table line_items\n"
-"    add constraint line_itemsFK0 foreign key (product_id) references "
-"products\n"
+"    add constraint line_itemsFK0 foreign key (product_id) references products\n"
 "alter table line_items\n"
 "    add constraint line_itemsFK1 foreign key (order_id) references orders]]>"
 msgstr ""
-"create table customers (\n"
+"<![CDATA[create table customers (\n"
 "    id BIGINT not null generated by default as identity, \n"
 "    name VARCHAR(255), \n"
 "    primary key (id)\n"
@@ -674,10 +602,9 @@
 "alter table orders \n"
 "    add constraint ordersFK0 foreign key (customer_id) references customers\n"
 "alter table line_items\n"
-"    add constraint line_itemsFK0 foreign key (product_id) references "
-"products\n"
+"    add constraint line_itemsFK0 foreign key (product_id) references products\n"
 "alter table line_items\n"
-"    add constraint line_itemsFK1 foreign key (order_id) references orders"
+"    add constraint line_itemsFK1 foreign key (order_id) references orders]]>"
 
 #. Tag: title
 #: example_mappings.xml:150
@@ -687,14 +614,9 @@
 
 #. Tag: para
 #: example_mappings.xml:152
-#, fuzzy, no-c-format
-msgid ""
-"These examples are available from the Hibernate test suite. You will find "
-"many other useful example mappings there by searching in the <literal>test</"
-"literal> folder of the Hibernate distribution."
-msgstr ""
-"这些例子全部来自于 Hibernate 的 test suite,同时你也可以找到其他有用的例子。"
-"可以参考 Hibernate 的 <literal>test</literal> 目录。"
+#, no-c-format
+msgid "These examples are available from the Hibernate test suite. You will find many other useful example mappings there by searching in the <literal>test</literal> folder of the Hibernate distribution."
+msgstr "这些例子全部来自于 Hibernate 的 test suite,同时你也可以找到其他有用的例子。可以参考 Hibernate 的 <literal>test</literal> 目录。 "
 
 #. Tag: title
 #: example_mappings.xml:161
@@ -704,7 +626,7 @@
 
 #. Tag: programlisting
 #: example_mappings.xml:162
-#, fuzzy, no-c-format
+#, no-c-format
 msgid ""
 "<![CDATA[<class name=\"Person\">\n"
 "    <id name=\"name\"/>\n"
@@ -733,32 +655,32 @@
 "    <property name=\"zip\"/>\n"
 "</class>]]>"
 msgstr ""
-"&lt;class name=\"Person\"&gt;\n"
-"    &lt;id name=\"name\"/&gt;\n"
-"    &lt;one-to-one name=\"address\" \n"
-"            cascade=\"all\"&gt;\n"
-"        &lt;formula&gt;name&lt;/formula&gt;\n"
-"        &lt;formula&gt;'HOME'&lt;/formula&gt;\n"
-"    &lt;/one-to-one&gt;\n"
-"    &lt;one-to-one name=\"mailingAddress\" \n"
-"            cascade=\"all\"&gt;\n"
-"        &lt;formula&gt;name&lt;/formula&gt;\n"
-"        &lt;formula&gt;'MAILING'&lt;/formula&gt;\n"
-"    &lt;/one-to-one&gt;\n"
-"&lt;/class&gt;\n"
+"<![CDATA[<class name=\"Person\">\n"
+"    <id name=\"name\"/>\n"
+"    <one-to-one name=\"address\" \n"
+"            cascade=\"all\">\n"
+"        <formula>name</formula>\n"
+"        <formula>'HOME'</formula>\n"
+"    </one-to-one>\n"
+"    <one-to-one name=\"mailingAddress\" \n"
+"            cascade=\"all\">\n"
+"        <formula>name</formula>\n"
+"        <formula>'MAILING'</formula>\n"
+"    </one-to-one>\n"
+"</class>\n"
 "\n"
-"&lt;class name=\"Address\" batch-size=\"2\" \n"
-"        check=\"addressType in ('MAILING', 'HOME', 'BUSINESS')\"&gt;\n"
-"    &lt;composite-id&gt;\n"
-"        &lt;key-many-to-one name=\"person\" \n"
-"                column=\"personName\"/&gt;\n"
-"        &lt;key-property name=\"type\" \n"
-"                column=\"addressType\"/&gt;\n"
-"    &lt;/composite-id&gt;\n"
-"    &lt;property name=\"street\" type=\"text\"/&gt;\n"
-"    &lt;property name=\"state\"/&gt;\n"
-"    &lt;property name=\"zip\"/&gt;\n"
-"&lt;/class&gt;"
+"<class name=\"Address\" batch-size=\"2\" \n"
+"        check=\"addressType in ('MAILING', 'HOME', 'BUSINESS')\">\n"
+"    <composite-id>\n"
+"        <key-many-to-one name=\"person\" \n"
+"                column=\"personName\"/>\n"
+"        <key-property name=\"type\" \n"
+"                column=\"addressType\"/>\n"
+"    </composite-id>\n"
+"    <property name=\"street\" type=\"text\"/>\n"
+"    <property name=\"state\"/>\n"
+"    <property name=\"zip\"/>\n"
+"</class>]]>"
 
 #. Tag: title
 #: example_mappings.xml:166
@@ -768,7 +690,7 @@
 
 #. Tag: programlisting
 #: example_mappings.xml:167
-#, fuzzy, no-c-format
+#, no-c-format
 msgid ""
 "<![CDATA[<class name=\"Customer\">\n"
 "\n"
@@ -884,130 +806,129 @@
 "    \n"
 "</class>]]>"
 msgstr ""
-"&lt;class name=\"Customer\"&gt;\n"
+"<![CDATA[<class name=\"Customer\">\n"
 "\n"
-"    &lt;id name=\"customerId\"\n"
-"        length=\"10\"&gt;\n"
-"        &lt;generator class=\"assigned\"/&gt;\n"
-"    &lt;/id&gt;\n"
+"    <id name=\"customerId\"\n"
+"        length=\"10\">\n"
+"        <generator class=\"assigned\"/>\n"
+"    </id>\n"
 "\n"
-"    &lt;property name=\"name\" not-null=\"true\" length=\"100\"/&gt;\n"
-"    &lt;property name=\"address\" not-null=\"true\" length=\"200\"/&gt;\n"
+"    <property name=\"name\" not-null=\"true\" length=\"100\"/>\n"
+"    <property name=\"address\" not-null=\"true\" length=\"200\"/>\n"
 "\n"
-"    &lt;list name=\"orders\"\n"
+"    <list name=\"orders\"\n"
 "            inverse=\"true\"\n"
-"            cascade=\"save-update\"&gt;\n"
-"        &lt;key column=\"customerId\"/&gt;\n"
-"        &lt;index column=\"orderNumber\"/&gt;\n"
-"        &lt;one-to-many class=\"Order\"/&gt;\n"
-"    &lt;/list&gt;\n"
+"            cascade=\"save-update\">\n"
+"        <key column=\"customerId\"/>\n"
+"        <index column=\"orderNumber\"/>\n"
+"        <one-to-many class=\"Order\"/>\n"
+"    </list>\n"
 "\n"
-"&lt;/class&gt;\n"
+"</class>\n"
 "\n"
-"&lt;class name=\"Order\" table=\"CustomerOrder\" lazy=\"true\"&gt;\n"
-"    &lt;synchronize table=\"LineItem\"/&gt;\n"
-"    &lt;synchronize table=\"Product\"/&gt;\n"
+"<class name=\"Order\" table=\"CustomerOrder\" lazy=\"true\">\n"
+"    <synchronize table=\"LineItem\"/>\n"
+"    <synchronize table=\"Product\"/>\n"
 "    \n"
-"    &lt;composite-id name=\"id\" \n"
-"            class=\"Order&#36;Id\"&gt;\n"
-"        &lt;key-property name=\"customerId\" length=\"10\"/&gt;\n"
-"        &lt;key-property name=\"orderNumber\"/&gt;\n"
-"    &lt;/composite-id&gt;\n"
+"    <composite-id name=\"id\" \n"
+"            class=\"Order$Id\">\n"
+"        <key-property name=\"customerId\" length=\"10\"/>\n"
+"        <key-property name=\"orderNumber\"/>\n"
+"    </composite-id>\n"
 "    \n"
-"    &lt;property name=\"orderDate\" \n"
+"    <property name=\"orderDate\" \n"
 "            type=\"calendar_date\"\n"
-"            not-null=\"true\"/&gt;\n"
+"            not-null=\"true\"/>\n"
 "    \n"
-"    &lt;property name=\"total\"&gt;\n"
-"        &lt;formula&gt;\n"
+"    <property name=\"total\">\n"
+"        <formula>\n"
 "            ( select sum(li.quantity*p.price) \n"
 "            from LineItem li, Product p \n"
 "            where li.productId = p.productId \n"
 "                and li.customerId = customerId \n"
 "                and li.orderNumber = orderNumber )\n"
-"        &lt;/formula&gt;\n"
-"    &lt;/property&gt;\n"
+"        </formula>\n"
+"    </property>\n"
 "    \n"
-"    &lt;many-to-one name=\"customer\"\n"
+"    <many-to-one name=\"customer\"\n"
 "            column=\"customerId\"\n"
 "            insert=\"false\"\n"
 "            update=\"false\" \n"
-"            not-null=\"true\"/&gt;\n"
+"            not-null=\"true\"/>\n"
 "        \n"
-"    &lt;bag name=\"lineItems\"\n"
+"    <bag name=\"lineItems\"\n"
 "            fetch=\"join\" \n"
 "            inverse=\"true\"\n"
-"            cascade=\"save-update\"&gt;\n"
-"        &lt;key&gt;\n"
-"            &lt;column name=\"customerId\"/&gt;\n"
-"            &lt;column name=\"orderNumber\"/&gt;\n"
-"        &lt;/key&gt;\n"
-"        &lt;one-to-many class=\"LineItem\"/&gt;\n"
-"    &lt;/bag&gt;\n"
+"            cascade=\"save-update\">\n"
+"        <key>\n"
+"            <column name=\"customerId\"/>\n"
+"            <column name=\"orderNumber\"/>\n"
+"        </key>\n"
+"        <one-to-many class=\"LineItem\"/>\n"
+"    </bag>\n"
 "    \n"
-"&lt;/class&gt;\n"
+"</class>\n"
 "    \n"
-"&lt;class name=\"LineItem\"&gt;\n"
+"<class name=\"LineItem\">\n"
 "    \n"
-"    &lt;composite-id name=\"id\" \n"
-"            class=\"LineItem&#36;Id\"&gt;\n"
-"        &lt;key-property name=\"customerId\" length=\"10\"/&gt;\n"
-"        &lt;key-property name=\"orderNumber\"/&gt;\n"
-"        &lt;key-property name=\"productId\" length=\"10\"/&gt;\n"
-"    &lt;/composite-id&gt;\n"
+"    <composite-id name=\"id\" \n"
+"            class=\"LineItem$Id\">\n"
+"        <key-property name=\"customerId\" length=\"10\"/>\n"
+"        <key-property name=\"orderNumber\"/>\n"
+"        <key-property name=\"productId\" length=\"10\"/>\n"
+"    </composite-id>\n"
 "    \n"
-"    &lt;property name=\"quantity\"/&gt;\n"
+"    <property name=\"quantity\"/>\n"
 "    \n"
-"    &lt;many-to-one name=\"order\"\n"
+"    <many-to-one name=\"order\"\n"
 "            insert=\"false\"\n"
 "            update=\"false\" \n"
-"            not-null=\"true\"&gt;\n"
-"        &lt;column name=\"customerId\"/&gt;\n"
-"        &lt;column name=\"orderNumber\"/&gt;\n"
-"    &lt;/many-to-one&gt;\n"
+"            not-null=\"true\">\n"
+"        <column name=\"customerId\"/>\n"
+"        <column name=\"orderNumber\"/>\n"
+"    </many-to-one>\n"
 "    \n"
-"    &lt;many-to-one name=\"product\"\n"
+"    <many-to-one name=\"product\"\n"
 "            insert=\"false\"\n"
 "            update=\"false\" \n"
 "            not-null=\"true\"\n"
-"            column=\"productId\"/&gt;\n"
+"            column=\"productId\"/>\n"
 "        \n"
-"&lt;/class&gt;\n"
+"</class>\n"
 "\n"
-"&lt;class name=\"Product\"&gt;\n"
-"    &lt;synchronize table=\"LineItem\"/&gt;\n"
+"<class name=\"Product\">\n"
+"    <synchronize table=\"LineItem\"/>\n"
 "\n"
-"    &lt;id name=\"productId\"\n"
-"        length=\"10\"&gt;\n"
-"        &lt;generator class=\"assigned\"/&gt;\n"
-"    &lt;/id&gt;\n"
+"    <id name=\"productId\"\n"
+"        length=\"10\">\n"
+"        <generator class=\"assigned\"/>\n"
+"    </id>\n"
 "    \n"
-"    &lt;property name=\"description\" \n"
+"    <property name=\"description\" \n"
 "        not-null=\"true\" \n"
-"        length=\"200\"/&gt;\n"
-"    &lt;property name=\"price\" length=\"3\"/&gt;\n"
-"    &lt;property name=\"numberAvailable\"/&gt;\n"
+"        length=\"200\"/>\n"
+"    <property name=\"price\" length=\"3\"/>\n"
+"    <property name=\"numberAvailable\"/>\n"
 "    \n"
-"    &lt;property name=\"numberOrdered\"&gt;\n"
-"        &lt;formula&gt;\n"
+"    <property name=\"numberOrdered\">\n"
+"        <formula>\n"
 "            ( select sum(li.quantity) \n"
 "            from LineItem li \n"
 "            where li.productId = productId )\n"
-"        &lt;/formula&gt;\n"
-"    &lt;/property&gt;\n"
+"        </formula>\n"
+"    </property>\n"
 "    \n"
-"&lt;/class&gt;"
+"</class>]]>"
 
 #. Tag: title
 #: example_mappings.xml:171
 #, no-c-format
 msgid "Many-to-many with shared composite key attribute"
-msgstr ""
-"共有组合键属性的多对多(Many-to-many with shared composite key attribute)"
+msgstr "共有组合键属性的多对多(Many-to-many with shared composite key attribute)"
 
 #. Tag: programlisting
 #: example_mappings.xml:172
-#, fuzzy, no-c-format
+#, no-c-format
 msgid ""
 "<![CDATA[<class name=\"User\" table=\"`User`\">\n"
 "    <composite-id>\n"
@@ -1045,40 +966,41 @@
 "</class>\n"
 "]]>"
 msgstr ""
-"&lt;class name=\"User\" table=\"`User`\"&gt;\n"
-"    &lt;composite-id&gt;\n"
-"        &lt;key-property name=\"name\"/&gt;\n"
-"        &lt;key-property name=\"org\"/&gt;\n"
-"    &lt;/composite-id&gt;\n"
-"    &lt;set name=\"groups\" table=\"UserGroup\"&gt;\n"
-"        &lt;key&gt;\n"
-"            &lt;column name=\"userName\"/&gt;\n"
-"            &lt;column name=\"org\"/&gt;\n"
-"        &lt;/key&gt;\n"
-"        &lt;many-to-many class=\"Group\"&gt;\n"
-"            &lt;column name=\"groupName\"/&gt;\n"
-"            &lt;formula&gt;org&lt;/formula&gt;\n"
-"        &lt;/many-to-many&gt;\n"
-"    &lt;/set&gt;\n"
-"&lt;/class&gt;\n"
+"<![CDATA[<class name=\"User\" table=\"`User`\">\n"
+"    <composite-id>\n"
+"        <key-property name=\"name\"/>\n"
+"        <key-property name=\"org\"/>\n"
+"    </composite-id>\n"
+"    <set name=\"groups\" table=\"UserGroup\">\n"
+"        <key>\n"
+"            <column name=\"userName\"/>\n"
+"            <column name=\"org\"/>\n"
+"        </key>\n"
+"        <many-to-many class=\"Group\">\n"
+"            <column name=\"groupName\"/>\n"
+"            <formula>org</formula>\n"
+"        </many-to-many>\n"
+"    </set>\n"
+"</class>\n"
 "    \n"
-"&lt;class name=\"Group\" table=\"`Group`\"&gt;\n"
-"    &lt;composite-id&gt;\n"
-"        &lt;key-property name=\"name\"/&gt;\n"
-"        &lt;key-property name=\"org\"/&gt;\n"
-"    &lt;/composite-id&gt;\n"
-"    &lt;property name=\"description\"/&gt;\n"
-"    &lt;set name=\"users\" table=\"UserGroup\" inverse=\"true\"&gt;\n"
-"        &lt;key&gt;\n"
-"            &lt;column name=\"groupName\"/&gt;\n"
-"            &lt;column name=\"org\"/&gt;\n"
-"        &lt;/key&gt;\n"
-"        &lt;many-to-many class=\"User\"&gt;\n"
-"            &lt;column name=\"userName\"/&gt;\n"
-"            &lt;formula&gt;org&lt;/formula&gt;\n"
-"        &lt;/many-to-many&gt;\n"
-"    &lt;/set&gt;\n"
-"&lt;/class&gt;"
+"<class name=\"Group\" table=\"`Group`\">\n"
+"    <composite-id>\n"
+"        <key-property name=\"name\"/>\n"
+"        <key-property name=\"org\"/>\n"
+"    </composite-id>\n"
+"    <property name=\"description\"/>\n"
+"    <set name=\"users\" table=\"UserGroup\" inverse=\"true\">\n"
+"        <key>\n"
+"            <column name=\"groupName\"/>\n"
+"            <column name=\"org\"/>\n"
+"        </key>\n"
+"        <many-to-many class=\"User\">\n"
+"            <column name=\"userName\"/>\n"
+"            <formula>org</formula>\n"
+"        </many-to-many>\n"
+"    </set>\n"
+"</class>\n"
+"]]>"
 
 #. Tag: title
 #: example_mappings.xml:176
@@ -1088,7 +1010,7 @@
 
 #. Tag: programlisting
 #: example_mappings.xml:177
-#, fuzzy, no-c-format
+#, no-c-format
 msgid ""
 "<![CDATA[<class name=\"Person\"\n"
 "    discriminator-value=\"P\">\n"
@@ -1141,56 +1063,56 @@
 "    \n"
 "</class>]]>"
 msgstr ""
-"&lt;class name=\"Person\"\n"
-"    discriminator-value=\"P\"&gt;\n"
+"<![CDATA[<class name=\"Person\"\n"
+"    discriminator-value=\"P\">\n"
 "    \n"
-"    &lt;id name=\"id\" \n"
+"    <id name=\"id\" \n"
 "        column=\"person_id\" \n"
-"        unsaved-value=\"0\"&gt;\n"
-"        &lt;generator class=\"native\"/&gt;\n"
-"    &lt;/id&gt;\n"
+"        unsaved-value=\"0\">\n"
+"        <generator class=\"native\"/>\n"
+"    </id>\n"
 "    \n"
 "            \n"
-"    &lt;discriminator \n"
-"        type=\"character\"&gt;\n"
-"        &lt;formula&gt;\n"
+"    <discriminator \n"
+"        type=\"character\">\n"
+"        <formula>\n"
 "            case \n"
 "                when title is not null then 'E' \n"
 "                when salesperson is not null then 'C' \n"
 "                else 'P' \n"
 "            end\n"
-"        &lt;/formula&gt;\n"
-"    &lt;/discriminator&gt;\n"
+"        </formula>\n"
+"    </discriminator>\n"
 "\n"
-"    &lt;property name=\"name\" \n"
+"    <property name=\"name\" \n"
 "        not-null=\"true\"\n"
-"        length=\"80\"/&gt;\n"
+"        length=\"80\"/>\n"
 "        \n"
-"    &lt;property name=\"sex\" \n"
+"    <property name=\"sex\" \n"
 "        not-null=\"true\"\n"
-"        update=\"false\"/&gt;\n"
+"        update=\"false\"/>\n"
 "    \n"
-"    &lt;component name=\"address\"&gt;\n"
-"        &lt;property name=\"address\"/&gt;\n"
-"        &lt;property name=\"zip\"/&gt;\n"
-"        &lt;property name=\"country\"/&gt;\n"
-"    &lt;/component&gt;\n"
+"    <component name=\"address\">\n"
+"        <property name=\"address\"/>\n"
+"        <property name=\"zip\"/>\n"
+"        <property name=\"country\"/>\n"
+"    </component>\n"
 "    \n"
-"    &lt;subclass name=\"Employee\" \n"
-"        discriminator-value=\"E\"&gt;\n"
-"            &lt;property name=\"title\"\n"
-"                length=\"20\"/&gt;\n"
-"            &lt;property name=\"salary\"/&gt;\n"
-"            &lt;many-to-one name=\"manager\"/&gt;\n"
-"    &lt;/subclass&gt;\n"
+"    <subclass name=\"Employee\" \n"
+"        discriminator-value=\"E\">\n"
+"            <property name=\"title\"\n"
+"                length=\"20\"/>\n"
+"            <property name=\"salary\"/>\n"
+"            <many-to-one name=\"manager\"/>\n"
+"    </subclass>\n"
 "    \n"
-"    &lt;subclass name=\"Customer\" \n"
-"        discriminator-value=\"C\"&gt;\n"
-"            &lt;property name=\"comments\"/&gt;\n"
-"            &lt;many-to-one name=\"salesperson\"/&gt;\n"
-"    &lt;/subclass&gt;\n"
+"    <subclass name=\"Customer\" \n"
+"        discriminator-value=\"C\">\n"
+"            <property name=\"comments\"/>\n"
+"            <many-to-one name=\"salesperson\"/>\n"
+"    </subclass>\n"
 "    \n"
-"&lt;/class&gt;"
+"</class>]]>"
 
 #. Tag: title
 #: example_mappings.xml:181
@@ -1200,7 +1122,7 @@
 
 #. Tag: programlisting
 #: example_mappings.xml:182
-#, fuzzy, no-c-format
+#, no-c-format
 msgid ""
 "<![CDATA[<class name=\"Person\">\n"
 "    \n"
@@ -1252,52 +1174,53 @@
 "    \n"
 "</class>]]>"
 msgstr ""
-"&lt;class name=\"Person\"&gt;\n"
+"<![CDATA[<class name=\"Person\">\n"
 "    \n"
-"    &lt;id name=\"id\"&gt;\n"
-"        &lt;generator class=\"hilo\"/&gt;\n"
-"    &lt;/id&gt;\n"
+"    <id name=\"id\">\n"
+"        <generator class=\"hilo\"/>\n"
+"    </id>\n"
 "    \n"
-"    &lt;property name=\"name\" length=\"100\"/&gt;\n"
+"    <property name=\"name\" length=\"100\"/>\n"
 "    \n"
-"    &lt;one-to-one name=\"address\" \n"
+"    <one-to-one name=\"address\" \n"
 "        property-ref=\"person\"\n"
 "        cascade=\"all\"\n"
-"        fetch=\"join\"/&gt;\n"
+"        fetch=\"join\"/>\n"
 "    \n"
-"    &lt;set name=\"accounts\" \n"
-"        inverse=\"true\"&gt;\n"
-"        &lt;key column=\"userId\"\n"
-"            property-ref=\"userId\"/&gt;\n"
-"        &lt;one-to-many class=\"Account\"/&gt;\n"
-"    &lt;/set&gt;\n"
+"    <set name=\"accounts\" \n"
+"        inverse=\"true\">\n"
+"        <key column=\"userId\"\n"
+"            property-ref=\"userId\"/>\n"
+"        <one-to-many class=\"Account\"/>\n"
+"    </set>\n"
 "    \n"
-"    &lt;property name=\"userId\" length=\"8\"/&gt;\n"
+"    <property name=\"userId\" length=\"8\"/>\n"
 "\n"
-"&lt;/class&gt;\n"
+"</class>\n"
 "\n"
-"&lt;class name=\"Address\"&gt;\n"
+"<class name=\"Address\">\n"
 "\n"
-"    &lt;id name=\"id\"&gt;\n"
-"        &lt;generator class=\"hilo\"/&gt;\n"
-"    &lt;/id&gt;\n"
+"    <id name=\"id\">\n"
+"        <generator class=\"hilo\"/>\n"
+"    </id>\n"
 "\n"
-"    &lt;property name=\"address\" length=\"300\"/&gt;\n"
-"    &lt;property name=\"zip\" length=\"5\"/&gt;\n"
-"    &lt;property name=\"country\" length=\"25\"/&gt;\n"
-"    &lt;many-to-one name=\"person\" unique=\"true\" not-null=\"true\"/&gt;\n"
+"    <property name=\"address\" length=\"300\"/>\n"
+"    <property name=\"zip\" length=\"5\"/>\n"
+"    <property name=\"country\" length=\"25\"/>\n"
+"    <many-to-one name=\"person\" unique=\"true\" not-null=\"true\"/>\n"
 "\n"
-"&lt;/class&gt;\n"
+"</class>\n"
 "\n"
-"&lt;class name=\"Account\"&gt;\n"
-"    &lt;id name=\"accountId\" length=\"32\"&gt;\n"
-"        &lt;generator class=\"uuid\"/&gt;\n"
-"    &lt;/id&gt;\n"
+"<class name=\"Account\">\n"
+"    <id name=\"accountId\" length=\"32\">\n"
+"        <generator class=\"uuid\"/>\n"
+"    </id>\n"
 "    \n"
-"    &lt;many-to-one name=\"user\"\n"
+"    <many-to-one name=\"user\"\n"
 "        column=\"userId\"\n"
-"        property-ref=\"userId\"/&gt;\n"
+"        property-ref=\"userId\"/>\n"
 "    \n"
-"    &lt;property name=\"type\" not-null=\"true\"/&gt;\n"
+"    <property name=\"type\" not-null=\"true\"/>\n"
 "    \n"
-"&lt;/class&gt;"
+"</class>]]>"
+

Modified: projects/docs/enterprise/5.0/Hibernate/Hibernate_Core/zh-CN/example_parentchild.po
===================================================================
--- projects/docs/enterprise/5.0/Hibernate/Hibernate_Core/zh-CN/example_parentchild.po	2009-11-20 08:07:46 UTC (rev 96634)
+++ projects/docs/enterprise/5.0/Hibernate/Hibernate_Core/zh-CN/example_parentchild.po	2009-11-20 08:37:25 UTC (rev 96635)
@@ -6,7 +6,7 @@
 "Project-Id-Version: Collection_Mapping\n"
 "Report-Msgid-Bugs-To: http://bugs.kde.org\n"
 "POT-Creation-Date: 2009-09-15 07:03+0000\n"
-"PO-Revision-Date: 2007-02-26 10:59+1000\n"
+"PO-Revision-Date: 2009-11-20 18:35+1000\n"
 "Last-Translator: Xi HUANG <xhuang at redhat.com>\n"
 "Language-Team:  <en at li.org>\n"
 "MIME-Version: 1.0\n"
@@ -18,36 +18,13 @@
 #: example_parentchild.xml:29
 #, no-c-format
 msgid "Example: Parent/Child"
-msgstr "示例:父子关系(Parent Child Relationships)"
+msgstr "示例:父子关系(Parent/Child)"
 
 #. Tag: para
 #: example_parentchild.xml:31
-#, fuzzy, no-c-format
-msgid ""
-"One of the first things that new users want to do with Hibernate is to model "
-"a parent/child type relationship. There are two different approaches to "
-"this. The most convenient approach, especially for new users, is to model "
-"both <literal>Parent</literal> and <literal>Child</literal> as entity "
-"classes with a <literal>&lt;one-to-many&gt;</literal> association from "
-"<literal>Parent</literal> to <literal>Child</literal>. The alternative "
-"approach is to declare the <literal>Child</literal> as a <literal>&lt;"
-"composite-element&gt;</literal>. The default semantics of a one-to-many "
-"association in Hibernate are much less close to the usual semantics of a "
-"parent/child relationship than those of a composite element mapping. We will "
-"explain how to use a <emphasis>bidirectional one-to-many association with "
-"cascades</emphasis> to model a parent/child relationship efficiently and "
-"elegantly."
-msgstr ""
-"刚刚接触 Hibernate 的人大多是从父子关系(parent / child type relationship)的"
-"建模入手的。父子关系的建模有两种方法。由于种种原因,最方便的方法是把 "
-"<literal>Parent</literal> 和 <literal>Child</literal> 都建模成实体类,并创建"
-"一个从 <literal>Parent</literal> 指向 <literal>Child</literal> 的 &lt;one-to-"
-"many&gt; 关联,对新手来说尤其如此。还有一种方法,就是将 <literal>Child</"
-"literal> 声明为一个 <literal>&lt;composite-element&gt;</literal>(组合元"
-"素)。 事实上在 Hibernate 中 one to many 关联的默认语义远没有 composite "
-"element 贴近 parent / child 关系的通常语义。下面我们会阐述如何使用<emphasis>"
-"带有级联的双向一对多关联(idirectional one to many association with "
-"cascades)</emphasis>去建立有效、优美的 parent / child 关系。这一点也不难!"
+#, no-c-format
+msgid "One of the first things that new users want to do with Hibernate is to model a parent/child type relationship. There are two different approaches to this. The most convenient approach, especially for new users, is to model both <literal>Parent</literal> and <literal>Child</literal> as entity classes with a <literal>&lt;one-to-many&gt;</literal> association from <literal>Parent</literal> to <literal>Child</literal>. The alternative approach is to declare the <literal>Child</literal> as a <literal>&lt;composite-element&gt;</literal>. The default semantics of a one-to-many association in Hibernate are much less close to the usual semantics of a parent/child relationship than those of a composite element mapping. We will explain how to use a <emphasis>bidirectional one-to-many association with cascades</emphasis> to model a parent/child relationship efficiently and elegantly."
+msgstr "刚刚接触 Hibernate 的人大多是从父子关系(parent / child type relationship)的建模入手的。父子关系的建模有两种方法。由于种种原因,最方便的方法是把 <literal>Parent</literal> 和 <literal>Child</literal> 都建模成实体类,并创建一个从 <literal>Parent</literal> 指向 <literal>Child</literal> 的 &lt;one-to-many&gt; 关联,对新手来说尤其如此。还有一种方法,就是将 <literal>Child</literal> 声明为一个 <literal>&lt;composite-element&gt;</literal>(组合元素)。 事实上在 Hibernate 中 one to many 关联的默认语义远没有 composite element 贴近 parent / child 关系的通常语义。下面我们会阐述如何使用<emphasis>带有级联的双向一对多关联(idirectional one to many association with cascades)</emphasis>去建立有效、优美的 parent / child 关系。"
 
 #. Tag: title
 #: example_parentchild.xml:45
@@ -57,67 +34,33 @@
 
 #. Tag: para
 #: example_parentchild.xml:47
-#, fuzzy, no-c-format
-msgid ""
-"Hibernate collections are considered to be a logical part of their owning "
-"entity and not of the contained entities. Be aware that this is a critical "
-"distinction that has the following consequences:"
-msgstr ""
-"Hibernate collections 被当作其所属实体而不是其包含实体的一个逻辑部分。这非常"
-"重要!它主要体现为以下几点:"
+#, no-c-format
+msgid "Hibernate collections are considered to be a logical part of their owning entity and not of the contained entities. Be aware that this is a critical distinction that has the following consequences:"
+msgstr "Hibernate collections 被当作其所属实体而不是其包含实体的一个逻辑部分。这非常重要,它主要体现为以下几点:"
 
 #. Tag: para
 #: example_parentchild.xml:54
-#, fuzzy, no-c-format
-msgid ""
-"When you remove/add an object from/to a collection, the version number of "
-"the collection owner is incremented."
-msgstr ""
-"当删除或增加 collection 中对象的时候,collection 所属者的版本值会递增。"
+#, no-c-format
+msgid "When you remove/add an object from/to a collection, the version number of the collection owner is incremented."
+msgstr "当删除或增加 collection 中对象的时候,collection 所属者的版本值会递增。 "
 
 #. Tag: para
 #: example_parentchild.xml:60
-#, fuzzy, no-c-format
-msgid ""
-"If an object that was removed from a collection is an instance of a value "
-"type (e.g. a composite element), that object will cease to be persistent and "
-"its state will be completely removed from the database. Likewise, adding a "
-"value type instance to the collection will cause its state to be immediately "
-"persistent."
-msgstr ""
-"如果一个从 collection 中移除的对象是一个值类型(value type)的实例,比如 "
-"composite element,那么这个对象的持久化状态将会终止,其在数据库中对应的记录会"
-"被删除。同样的,向 collection 增加一个 value type 的实例将会使之立即被持久"
-"化。"
+#, no-c-format
+msgid "If an object that was removed from a collection is an instance of a value type (e.g. a composite element), that object will cease to be persistent and its state will be completely removed from the database. Likewise, adding a value type instance to the collection will cause its state to be immediately persistent."
+msgstr "如果一个从 collection 中移除的对象是一个值类型(value type)的实例,比如 composite element,那么这个对象的持久化状态将会终止,其在数据库中对应的记录会被删除。同样的,向 collection 增加一个 value type 的实例将会使之立即被持久化。 "
 
 #. Tag: para
 #: example_parentchild.xml:68
-#, fuzzy, no-c-format
-msgid ""
-"Conversely, if an entity is removed from a collection (a one-to-many or many-"
-"to-many association), it will not be deleted by default. This behavior is "
-"completely consistent; a change to the internal state of another entity "
-"should not cause the associated entity to vanish. Likewise, adding an entity "
-"to a collection does not cause that entity to become persistent, by default."
-msgstr ""
-"另一方面,如果从一对多或多对多关联的 collection 中移除一个实体,在缺省情况下"
-"这个对象并不会被删除。这个行为是完全合乎逻辑的--改变一个实体的内部状态不应"
-"该使与它关联的实体消失掉!同样的,向 collection 增加一个实体不会使之被持久"
-"化。"
+#, no-c-format
+msgid "Conversely, if an entity is removed from a collection (a one-to-many or many-to-many association), it will not be deleted by default. This behavior is completely consistent; a change to the internal state of another entity should not cause the associated entity to vanish. Likewise, adding an entity to a collection does not cause that entity to become persistent, by default."
+msgstr "另一方面,如果从一对多或多对多关联的 collection 中移除一个实体,在缺省情况下这个对象并不会被删除。这个行为是完全合乎逻辑的--改变一个实体的内部状态不应该使与它关联的实体消失掉。同样的,向 collection 增加一个实体不会使之被持久化。 "
 
 #. Tag: para
 #: example_parentchild.xml:78
-#, fuzzy, no-c-format
-msgid ""
-"Adding an entity to a collection, by default, merely creates a link between "
-"the two entities. Removing the entity will remove the link. This is "
-"appropriate for all sorts of cases. However, it is not appropriate in the "
-"case of a parent/child relationship. In this case, the life of the child is "
-"bound to the life cycle of the parent."
-msgstr ""
-"实际上,向 Collection 增加一个实体的缺省动作只是在两个实体之间创建一个连接而"
-"已,同样移除的时候也只是删除连接。这种处理对于所有的情况都是合适的。对于父子"
-"关系则是完全不适合的,在这种关系下,子对象的生存绑定于父对象的生存周期。"
+#, no-c-format
+msgid "Adding an entity to a collection, by default, merely creates a link between the two entities. Removing the entity will remove the link. This is appropriate for all sorts of cases. However, it is not appropriate in the case of a parent/child relationship. In this case, the life of the child is bound to the life cycle of the parent."
+msgstr "实际上,向 Collection 增加一个实体的缺省动作只是在两个实体之间创建一个连接而已,同样移除的时候也只是删除连接。这种处理对于所有的情况都是合适的。对于父子关系则是完全不适合的,在这种关系下,子对象的生存绑定于父对象的生存周期。 "
 
 #. Tag: title
 #: example_parentchild.xml:88
@@ -128,35 +71,32 @@
 #. Tag: para
 #: example_parentchild.xml:90
 #, no-c-format
-msgid ""
-"Suppose we start with a simple <literal>&lt;one-to-many&gt;</literal> "
-"association from <literal>Parent</literal> to <literal>Child</literal>."
-msgstr ""
-"假设我们要实现一个简单的从 Parent 到 Child 的 &lt;one-to-many&gt; 关联。"
+msgid "Suppose we start with a simple <literal>&lt;one-to-many&gt;</literal> association from <literal>Parent</literal> to <literal>Child</literal>."
+msgstr "假设我们要实现一个简单的从 Parent 到 Child 的 &lt;one-to-many&gt; 关联。"
 
 #. Tag: programlisting
 #: example_parentchild.xml:95
-#, fuzzy, no-c-format
+#, no-c-format
 msgid ""
 "<![CDATA[<set name=\"children\">\n"
 "    <key column=\"parent_id\"/>\n"
 "    <one-to-many class=\"Child\"/>\n"
 "</set>]]>"
 msgstr ""
-"&lt;set name=\"children\"&gt;\n"
-"    &lt;key column=\"parent_id\"/&gt;\n"
-"    &lt;one-to-many class=\"Child\"/&gt;\n"
-"&lt;/set&gt;"
+"<![CDATA[<set name=\"children\">\n"
+"    <key column=\"parent_id\"/>\n"
+"    <one-to-many class=\"Child\"/>\n"
+"</set>]]>"
 
 #. Tag: para
 #: example_parentchild.xml:97
-#, fuzzy, no-c-format
+#, no-c-format
 msgid "If we were to execute the following code:"
-msgstr "如果我们运行下面的代码"
+msgstr "如果我们运行下面的代码:"
 
 #. Tag: programlisting
 #: example_parentchild.xml:101
-#, fuzzy, no-c-format
+#, no-c-format
 msgid ""
 "<![CDATA[Parent p = .....;\n"
 "Child c = new Child();\n"
@@ -164,11 +104,11 @@
 "session.save(c);\n"
 "session.flush();]]>"
 msgstr ""
-"Parent p = .....;\n"
+"<![CDATA[Parent p = .....;\n"
 "Child c = new Child();\n"
 "p.getChildren().add(c);\n"
 "session.save(c);\n"
-"session.flush();"
+"session.flush();]]>"
 
 #. Tag: para
 #: example_parentchild.xml:103
@@ -179,47 +119,34 @@
 #. Tag: para
 #: example_parentchild.xml:109
 #, no-c-format
-msgid ""
-"an <literal>INSERT</literal> to create the record for <literal>c</literal>"
-msgstr ""
-"一条 <literal>INSERT</literal> 语句,为 <literal>c</literal> 创建一条记录"
+msgid "an <literal>INSERT</literal> to create the record for <literal>c</literal>"
+msgstr "一条 <literal>INSERT</literal> 语句,为 <literal>c</literal> 创建一条记录"
 
 #. Tag: para
 #: example_parentchild.xml:112
 #, no-c-format
-msgid ""
-"an <literal>UPDATE</literal> to create the link from <literal>p</literal> to "
-"<literal>c</literal>"
-msgstr ""
-"一条 <literal>UPDATE</literal> 语句,创建从 <literal>p</literal> 到 "
-"<literal>c</literal> 的连接"
+msgid "an <literal>UPDATE</literal> to create the link from <literal>p</literal> to <literal>c</literal>"
+msgstr "一条 <literal>UPDATE</literal> 语句,创建从 <literal>p</literal> 到 <literal>c</literal> 的连接"
 
 #. Tag: para
 #: example_parentchild.xml:119
-#, fuzzy, no-c-format
-msgid ""
-"This is not only inefficient, but also violates any <literal>NOT NULL</"
-"literal> constraint on the <literal>parent_id</literal> column. You can fix "
-"the nullability constraint violation by specifying <literal>not-null=\"true"
-"\"</literal> in the collection mapping:"
-msgstr ""
-"这样做不仅效率低,而且违反了列 <literal>parent_id</literal> 非空的限制。我们"
-"可以通过在集合类映射上指定 <literal>not-null=\"true\"</literal> 来解决违反非"
-"空约束的问题:"
+#, no-c-format
+msgid "This is not only inefficient, but also violates any <literal>NOT NULL</literal> constraint on the <literal>parent_id</literal> column. You can fix the nullability constraint violation by specifying <literal>not-null=\"true\"</literal> in the collection mapping:"
+msgstr "这样做不仅效率低,而且违反了 <literal>parent_id</literal> 列 <literal>parent_id</literal> 非空的限制。我们可以通过在集合类映射上指定 <literal>not-null=\"true\"</literal> 来解决违反非空约束的问题:"
 
 #. Tag: programlisting
 #: example_parentchild.xml:125
-#, fuzzy, no-c-format
+#, no-c-format
 msgid ""
 "<![CDATA[<set name=\"children\">\n"
 "    <key column=\"parent_id\" not-null=\"true\"/>\n"
 "    <one-to-many class=\"Child\"/>\n"
 "</set>]]>"
 msgstr ""
-"&lt;set name=\"children\"&gt;\n"
-"    &lt;key column=\"parent_id\" not-null=\"true\"/&gt;\n"
-"    &lt;one-to-many class=\"Child\"/&gt;\n"
-"&lt;/set&gt;"
+"<![CDATA[<set name=\"children\">\n"
+"    <key column=\"parent_id\" not-null=\"true\"/>\n"
+"    <one-to-many class=\"Child\"/>\n"
+"</set>]]>"
 
 #. Tag: para
 #: example_parentchild.xml:127
@@ -229,72 +156,51 @@
 
 #. Tag: para
 #: example_parentchild.xml:130
-#, fuzzy, no-c-format
-msgid ""
-"The underlying cause of this behavior is that the link (the foreign key "
-"<literal>parent_id</literal>) from <literal>p</literal> to <literal>c</"
-"literal> is not considered part of the state of the <literal>Child</literal> "
-"object and is therefore not created in the <literal>INSERT</literal>. The "
-"solution is to make the link part of the <literal>Child</literal> mapping."
-msgstr ""
-"这种现象的根本原因是从 <literal>p</literal> 到 <literal>c</literal> 的连接"
-"(外键 parent_id)没有被当作 <literal>Child</literal> 对象状态的一部分,因而"
-"没有在 INSERT 语句中被创建。因此解决的办法就是把这个连接添加到 Child 的映射"
-"中。"
+#, no-c-format
+msgid "The underlying cause of this behavior is that the link (the foreign key <literal>parent_id</literal>) from <literal>p</literal> to <literal>c</literal> is not considered part of the state of the <literal>Child</literal> object and is therefore not created in the <literal>INSERT</literal>. The solution is to make the link part of the <literal>Child</literal> mapping."
+msgstr "这种现象的根本原因是从 <literal>p</literal> 到 <literal>c</literal> 的连接(外键 parent_id)没有被当作 <literal>Child</literal> 对象状态的一部分,因而没有在 <literal>INSERT</literal> 语句中被创建。因此解决的办法就是把这个连接添加到 <literal>Child</literal> 的映射中。"
 
 #. Tag: programlisting
 #: example_parentchild.xml:137
 #, fuzzy, no-c-format
-msgid ""
-"<![CDATA[<many-to-one name=\"parent\" column=\"parent_id\" not-null=\"true\"/"
-">]]>"
-msgstr ""
-"&lt;many-to-one name=\"parent\" column=\"parent_id\" not-null=\"true\"/&gt;"
+msgid "<![CDATA[<many-to-one name=\"parent\" column=\"parent_id\" not-null=\"true\"/>]]>"
+msgstr "&lt;many-to-one name=\"parent\" column=\"parent_id\" not-null=\"true\"/&gt;"
 
 #. Tag: para
 #: example_parentchild.xml:139
 #, fuzzy, no-c-format
-msgid ""
-"You also need to add the <literal>parent</literal> property to the "
-"<literal>Child</literal> class."
-msgstr ""
-"(我们还需要为类 <literal>Child</literal> 添加 <literal>parent</literal> 属"
-"性)"
+msgid "You also need to add the <literal>parent</literal> property to the <literal>Child</literal> class."
+msgstr "(我们还需要为类 <literal>Child</literal> 添加 <literal>parent</literal> 属性)"
 
 #. Tag: para
 #: example_parentchild.xml:143
-#, fuzzy, no-c-format
-msgid ""
-"Now that the <literal>Child</literal> entity is managing the state of the "
-"link, we tell the collection not to update the link. We use the "
-"<literal>inverse</literal> attribute to do this:"
-msgstr ""
-"现在实体 <literal>Child</literal> 在管理连接的状态,为了使 collection 不更新"
-"连接,我们使用 <literal>inverse</literal> 属性。"
+#, no-c-format
+msgid "Now that the <literal>Child</literal> entity is managing the state of the link, we tell the collection not to update the link. We use the <literal>inverse</literal> attribute to do this:"
+msgstr "现在实体 <literal>Child</literal> 在管理连接的状态,为了使 collection 不更新连接,我们使用 <literal>inverse</literal> 属性:"
 
 #. Tag: programlisting
 #: example_parentchild.xml:148
-#, fuzzy, no-c-format
+#, no-c-format
 msgid ""
 "<![CDATA[<set name=\"children\" inverse=\"true\">\n"
 "    <key column=\"parent_id\"/>\n"
 "    <one-to-many class=\"Child\"/>\n"
 "</set>]]>"
 msgstr ""
-"&lt;set name=\"children\" inverse=\"true\"&gt;\n"
-"    &lt;key column=\"parent_id\"/&gt;\n"
-"    &lt;one-to-many class=\"Child\"/&gt;\n"
-"&lt;/set&gt;"
+"<![CDATA[<set name=\"children\" inverse=\"true\">\n"
+"    <key column=\"parent_id\"/>\n"
+"    <one-to-many class=\"Child\"/>\n"
+"</set>]]>"
 
 #. Tag: para
 #: example_parentchild.xml:150
-#, fuzzy, no-c-format
+#, no-c-format
 msgid "The following code would be used to add a new <literal>Child</literal>:"
-msgstr "下面的代码是用来添加一个新的 <literal>Child</literal>"
+msgstr "下面的代码是用来添加一个新的 <literal>Child</literal>:"
 
 #. Tag: programlisting
 #: example_parentchild.xml:154
-#, fuzzy, no-c-format
+#, no-c-format
 msgid ""
 "<![CDATA[Parent p = (Parent) session.load(Parent.class, pid);\n"
 "Child c = new Child();\n"
@@ -303,52 +209,48 @@
 "session.save(c);\n"
 "session.flush();]]>"
 msgstr ""
-"Parent p = (Parent) session.load(Parent.class, pid);\n"
+"<![CDATA[Parent p = (Parent) session.load(Parent.class, pid);\n"
 "Child c = new Child();\n"
 "c.setParent(p);\n"
 "p.getChildren().add(c);\n"
 "session.save(c);\n"
-"session.flush();"
+"session.flush();]]>"
 
 #. Tag: para
 #: example_parentchild.xml:156
-#, fuzzy, no-c-format
+#, no-c-format
 msgid "Only one SQL <literal>INSERT</literal> would now be issued."
-msgstr "现在,只会有一条 <literal>INSERT</literal> 语句被执行!"
+msgstr "现在,只会有一条 <literal>INSERT</literal> 语句被执行。"
 
 #. Tag: para
 #: example_parentchild.xml:160
-#, fuzzy, no-c-format
-msgid ""
-"You could also create an <literal>addChild()</literal> method of "
-"<literal>Parent</literal>."
-msgstr ""
-"为了让事情变得井井有条,可以为 <literal>Parent</literal> 加一个 "
-"<literal>addChild()</literal> 方法。"
+#, no-c-format
+msgid "You could also create an <literal>addChild()</literal> method of <literal>Parent</literal>."
+msgstr "为了让事情变得井井有条,可以为 <literal>Parent</literal> 加一个 <literal>addChild()</literal> 方法。"
 
 #. Tag: programlisting
 #: example_parentchild.xml:165
-#, fuzzy, no-c-format
+#, no-c-format
 msgid ""
 "<![CDATA[public void addChild(Child c) {\n"
 "    c.setParent(this);\n"
 "    children.add(c);\n"
 "}]]>"
 msgstr ""
-"public void addChild(Child c) {\n"
+"<![CDATA[public void addChild(Child c) {\n"
 "    c.setParent(this);\n"
 "    children.add(c);\n"
-"}"
+"}]]>"
 
 #. Tag: para
 #: example_parentchild.xml:167
-#, fuzzy, no-c-format
+#, no-c-format
 msgid "The code to add a <literal>Child</literal> looks like this:"
-msgstr "现在,添加 <literal>Child</literal> 的代码就是这样"
+msgstr "现在,添加 <literal>Child</literal> 的代码就是这样:"
 
 #. Tag: programlisting
 #: example_parentchild.xml:171
-#, fuzzy, no-c-format
+#, no-c-format
 msgid ""
 "<![CDATA[Parent p = (Parent) session.load(Parent.class, pid);\n"
 "Child c = new Child();\n"
@@ -356,90 +258,81 @@
 "session.save(c);\n"
 "session.flush();]]>"
 msgstr ""
-"Parent p = (Parent) session.load(Parent.class, pid);\n"
+"<![CDATA[Parent p = (Parent) session.load(Parent.class, pid);\n"
 "Child c = new Child();\n"
 "p.addChild(c);\n"
 "session.save(c);\n"
-"session.flush();"
+"session.flush();]]>"
 
 #. Tag: title
 #: example_parentchild.xml:176
-#, fuzzy, no-c-format
+#, no-c-format
 msgid "Cascading life cycle"
-msgstr "级联生命周期(Cascading lifecycle)"
+msgstr "级联生命周期(Cascading lifecycle) "
 
 #. Tag: para
 #: example_parentchild.xml:178
-#, fuzzy, no-c-format
-msgid ""
-"You can address the frustrations of the explicit call to <literal>save()</"
-"literal> by using cascades."
-msgstr ""
-"需要显式调用 <literal>save()</literal> 仍然很麻烦,我们可以用级联来解决这个问"
-"题。"
+#, no-c-format
+msgid "You can address the frustrations of the explicit call to <literal>save()</literal> by using cascades."
+msgstr "需要显式调用 <literal>save()</literal> 仍然很麻烦,我们可以用级联来解决这个问题。 "
 
 #. Tag: programlisting
 #: example_parentchild.xml:183
-#, fuzzy, no-c-format
+#, no-c-format
 msgid ""
 "<![CDATA[<set name=\"children\" inverse=\"true\" cascade=\"all\">\n"
 "    <key column=\"parent_id\"/>\n"
 "    <one-to-many class=\"Child\"/>\n"
 "</set>]]>"
 msgstr ""
-"&lt;set name=\"children\" inverse=\"true\" cascade=\"all\"&gt;\n"
-"    &lt;key column=\"parent_id\"/&gt;\n"
-"    &lt;one-to-many class=\"Child\"/&gt;\n"
-"&lt;/set&gt;"
+"<![CDATA[<set name=\"children\" inverse=\"true\" cascade=\"all\">\n"
+"    <key column=\"parent_id\"/>\n"
+"    <one-to-many class=\"Child\"/>\n"
+"</set>]]>"
 
 #. Tag: para
 #: example_parentchild.xml:185
-#, fuzzy, no-c-format
+#, no-c-format
 msgid "This simplifies the code above to:"
-msgstr "这样上面的代码可以简化为:"
+msgstr "这样上面的代码可以简化为: "
 
 #. Tag: programlisting
 #: example_parentchild.xml:189
-#, fuzzy, no-c-format
+#, no-c-format
 msgid ""
 "<![CDATA[Parent p = (Parent) session.load(Parent.class, pid);\n"
 "Child c = new Child();\n"
 "p.addChild(c);\n"
 "session.flush();]]>"
 msgstr ""
-"Parent p = (Parent) session.load(Parent.class, pid);\n"
+"<![CDATA[Parent p = (Parent) session.load(Parent.class, pid);\n"
 "Child c = new Child();\n"
 "p.addChild(c);\n"
-"session.flush();"
+"session.flush();]]>"
 
 #. Tag: para
 #: example_parentchild.xml:191
-#, fuzzy, no-c-format
-msgid ""
-"Similarly, we do not need to iterate over the children when saving or "
-"deleting a <literal>Parent</literal>. The following removes <literal>p</"
-"literal> and all its children from the database."
-msgstr ""
-"同样的,保存或删除 <literal>Parent</literal> 对象的时候并不需要遍历其子对象。"
-"下面的代码会删除对象 <literal>p</literal> 及其所有子对象对应的数据库记录。"
+#, no-c-format
+msgid "Similarly, we do not need to iterate over the children when saving or deleting a <literal>Parent</literal>. The following removes <literal>p</literal> and all its children from the database."
+msgstr "同样的,保存或删除 <literal>Parent</literal> 对象的时候并不需要遍历其子对象。下面的代码会删除对象 <literal>p</literal> 及其所有子对象对应的数据库记录。 "
 
 #. Tag: programlisting
 #: example_parentchild.xml:196
-#, fuzzy, no-c-format
+#, no-c-format
 msgid ""
 "<![CDATA[Parent p = (Parent) session.load(Parent.class, pid);\n"
 "session.delete(p);\n"
 "session.flush();]]>"
 msgstr ""
-"Parent p = (Parent) session.load(Parent.class, pid);\n"
+"<![CDATA[Parent p = (Parent) session.load(Parent.class, pid);\n"
 "session.delete(p);\n"
-"session.flush();"
+"session.flush();]]>"
 
 #. Tag: para
 #: example_parentchild.xml:198
-#, fuzzy, no-c-format
+#, no-c-format
 msgid "However, the following code:"
-msgstr "然而,这段代码"
+msgstr "然而,这段代码:"
 
 #. Tag: programlisting
 #: example_parentchild.xml:202
@@ -459,20 +352,13 @@
 
 #. Tag: para
 #: example_parentchild.xml:204
-#, fuzzy, no-c-format
-msgid ""
-"will not remove <literal>c</literal> from the database. In this case, it "
-"will only remove the link to <literal>p</literal> and cause a <literal>NOT "
-"NULL</literal> constraint violation. You need to explicitly <literal>delete()"
-"</literal> the <literal>Child</literal>."
-msgstr ""
-"不会从数据库删除<literal>c</literal>;它只会删除与 <literal>p</literal> 之间"
-"的连接(并且会导致违反 <literal>NOT NULL</literal> 约束,在这个例子中)。你需"
-"要显式调用 <literal>delete()</literal> 来删除 <literal>Child</literal>。"
+#, no-c-format
+msgid "will not remove <literal>c</literal> from the database. In this case, it will only remove the link to <literal>p</literal> and cause a <literal>NOT NULL</literal> constraint violation. You need to explicitly <literal>delete()</literal> the <literal>Child</literal>."
+msgstr "不会从数据库删除<literal>c</literal>;它只会删除与 <literal>p</literal> 之间的连接(并且会导致违反 <literal>NOT NULL</literal> 约束,在这个例子中)。你需要显式调用 <literal>delete()</literal> 来删除 <literal>Child</literal>。 "
 
 #. Tag: programlisting
 #: example_parentchild.xml:210
-#, fuzzy, no-c-format
+#, no-c-format
 msgid ""
 "<![CDATA[Parent p = (Parent) session.load(Parent.class, pid);\n"
 "Child c = (Child) p.getChildren().iterator().next();\n"
@@ -480,105 +366,59 @@
 "session.delete(c);\n"
 "session.flush();]]>"
 msgstr ""
-"Parent p = (Parent) session.load(Parent.class, pid);\n"
+"<![CDATA[Parent p = (Parent) session.load(Parent.class, pid);\n"
 "Child c = (Child) p.getChildren().iterator().next();\n"
 "p.getChildren().remove(c);\n"
 "session.delete(c);\n"
-"session.flush();"
+"session.flush();]]>"
 
 #. Tag: para
 #: example_parentchild.xml:212
-#, fuzzy, no-c-format
-msgid ""
-"In our case, a <literal>Child</literal> cannot exist without its parent. So "
-"if we remove a <literal>Child</literal> from the collection, we do want it "
-"to be deleted. To do this, we must use <literal>cascade=\"all-delete-orphan"
-"\"</literal>."
-msgstr ""
-"在我们的例子中,如果没有父对象,子对象就不应该存在,如果将子对象从 "
-"collection 中移除,实际上我们是想删除它。要实现这种要求,就必须使用 "
-"<literal>cascade=\"all-delete-orphan\"</literal>。"
+#, no-c-format
+msgid "In our case, a <literal>Child</literal> cannot exist without its parent. So if we remove a <literal>Child</literal> from the collection, we do want it to be deleted. To do this, we must use <literal>cascade=\"all-delete-orphan\"</literal>."
+msgstr "在我们的例子中,如果没有父对象,子对象就不应该存在,如果将子对象从 collection 中移除,实际上我们是想删除它。要实现这种要求,就必须使用 <literal>cascade=\"all-delete-orphan\"</literal>。 "
 
 #. Tag: programlisting
 #: example_parentchild.xml:218
-#, fuzzy, no-c-format
+#, no-c-format
 msgid ""
-"<![CDATA[<set name=\"children\" inverse=\"true\" cascade=\"all-delete-orphan"
-"\">\n"
+"<![CDATA[<set name=\"children\" inverse=\"true\" cascade=\"all-delete-orphan\">\n"
 "    <key column=\"parent_id\"/>\n"
 "    <one-to-many class=\"Child\"/>\n"
 "</set>]]>"
 msgstr ""
-"&lt;set name=\"children\" inverse=\"true\" cascade=\"all-delete-orphan"
-"\"&gt;\n"
-"    &lt;key column=\"parent_id\"/&gt;\n"
-"    &lt;one-to-many class=\"Child\"/&gt;\n"
-"&lt;/set&gt;"
+"<![CDATA[<set name=\"children\" inverse=\"true\" cascade=\"all-delete-orphan\">\n"
+"    <key column=\"parent_id\"/>\n"
+"    <one-to-many class=\"Child\"/>\n"
+"</set>]]>"
 
 #. Tag: para
 #: example_parentchild.xml:220
-#, fuzzy, no-c-format
-msgid ""
-"Even though the collection mapping specifies <literal>inverse=\"true\"</"
-"literal>, cascades are still processed by iterating the collection elements. "
-"If you need an object be saved, deleted or updated by cascade, you must add "
-"it to the collection. It is not enough to simply call <literal>setParent()</"
-"literal>."
-msgstr ""
-"注意:即使在 collection 一方的映射中指定 <literal>inverse=\"true\"</"
-"literal>,级联仍然是通过遍历 collection 中的元素来处理的。如果你想要通过级联"
-"进行子对象的插入、删除、更新操作,就必须把它加到 collection 中,只调用 "
-"<literal>setParent()</literal> 是不够的。"
+#, no-c-format
+msgid "Even though the collection mapping specifies <literal>inverse=\"true\"</literal>, cascades are still processed by iterating the collection elements. If you need an object be saved, deleted or updated by cascade, you must add it to the collection. It is not enough to simply call <literal>setParent()</literal>."
+msgstr "注意:即使在 collection 一方的映射中指定 <literal>inverse=\"true\"</literal>,级联仍然是通过遍历 collection 中的元素来处理的。如果你想要通过级联进行子对象的插入、删除、更新操作,就必须把它加到 collection 中,只调用 <literal>setParent()</literal> 是不够的。 "
 
 #. Tag: title
 #: example_parentchild.xml:230
-#, fuzzy, no-c-format
+#, no-c-format
 msgid "Cascades and <literal>unsaved-value</literal>"
-msgstr "级联与未保存值(Cascades and unsaved-value)"
+msgstr "级联与未保存值(<literal>unsaved-value</literal>)"
 
 #. Tag: para
 #: example_parentchild.xml:232
-#, fuzzy, no-c-format
-msgid ""
-"Suppose we loaded up a <literal>Parent</literal> in one <literal>Session</"
-"literal>, made some changes in a UI action and wanted to persist these "
-"changes in a new session by calling <literal>update()</literal>. The "
-"<literal>Parent</literal> will contain a collection of children and, since "
-"the cascading update is enabled, Hibernate needs to know which children are "
-"newly instantiated and which represent existing rows in the database. We "
-"will also assume that both <literal>Parent</literal> and <literal>Child</"
-"literal> have generated identifier properties of type <literal>Long</"
-"literal>. Hibernate will use the identifier and version/timestamp property "
-"value to determine which of the children are new. (See <xref linkend="
-"\"objectstate-saveorupdate\"/>.) <emphasis>In Hibernate3, it is no longer "
-"necessary to specify an <literal>unsaved-value</literal> explicitly.</"
-"emphasis>"
-msgstr ""
-"假设我们从 <literal>Session</literal> 中装入了一个 <literal>Parent</literal> "
-"对象,用户界面对其进行了修改,然后希望在一个新的 Session 里面调用 "
-"<literal>update()</literal> 来保存这些修改。对象 <literal>Parent</literal> 包"
-"含了子对象的集合,由于打开了级联更新,Hibernate 需要知道哪些 Child 对象是新实"
-"例化的,哪些代表数据库中已经存在的记录。我们假设 <literal>Parent</literal> "
-"和 <literal>Child</literal> 对象的标识属性都是自动生成的,类型为 "
-"<literal>java.lang.Long</literal>。Hibernate 会使用标识属性的值,和 version "
-"或 timestamp 属性,来判断哪些子对象是新的。(参见 <xref linkend="
-"\"Working_with_objects-Automatic_state_detection\"/>)<emphasis>在 "
-"Hibernate3 中,显式指定 <literal>unsaved-value</literal> 不再是必须的了。</"
-"emphasis>"
+#, no-c-format
+msgid "Suppose we loaded up a <literal>Parent</literal> in one <literal>Session</literal>, made some changes in a UI action and wanted to persist these changes in a new session by calling <literal>update()</literal>. The <literal>Parent</literal> will contain a collection of children and, since the cascading update is enabled, Hibernate needs to know which children are newly instantiated and which represent existing rows in the database. We will also assume that both <literal>Parent</literal> and <literal>Child</literal> have generated identifier properties of type <literal>Long</literal>. Hibernate will use the identifier and version/timestamp property value to determine which of the children are new. (See <xref linkend=\"objectstate-saveorupdate\"/>.) <emphasis>In Hibernate3, it is no longer necessary to specify an <literal>unsaved-value</literal> explicitly.</emphasis>"
+msgstr "假设我们从 <literal>Session</literal> 中装入了一个 <literal>Parent</literal> 对象,用户界面对其进行了修改,然后希望在一个新的 Session 里面调用 <literal>update()</literal> 来保存这些修改。对象 <literal>Parent</literal> 包含了子对象的集合,由于打开了级联更新,Hibernate 需要知道哪些 Child 对象是新实例化的,哪些代表数据库中已经存在的记录。我们假设 <literal>Parent</literal> 和 <literal>Child</literal> 对象的标识属性都是自动生成的,类型为 <literal>java.lang.Long</literal>。Hibernate 会使用标识属性的值,和 version 或 timestamp 属性,来判断哪些子对象是新的。(参见 <xref linkend=\"objectstate-saveorupdate\"/>)<emphasis>在 Hibernate3 中,显式指定 <literal>unsaved-value</literal> 不再是必须的了。</emphasis>"
 
 #. Tag: para
 #: example_parentchild.xml:244
-#, fuzzy, no-c-format
-msgid ""
-"The following code will update <literal>parent</literal> and <literal>child</"
-"literal> and insert <literal>newChild</literal>:"
-msgstr ""
-"下面的代码会更新 <literal>parent</literal> 和 <literal>child</literal> 对象,"
-"并且插入 <literal>newChild</literal> 对象。"
+#, no-c-format
+msgid "The following code will update <literal>parent</literal> and <literal>child</literal> and insert <literal>newChild</literal>:"
+msgstr "下面的代码会更新 <literal>parent</literal> 和 <literal>child</literal> 对象,并且插入 <literal>newChild</literal> 对象。 "
 
 #. Tag: programlisting
 #: example_parentchild.xml:249
-#, fuzzy, no-c-format
+#, no-c-format
 msgid ""
 "<![CDATA[//parent and child were both loaded in a previous session\n"
 "parent.addChild(child);\n"
@@ -587,29 +427,18 @@
 "session.update(parent);\n"
 "session.flush();]]>"
 msgstr ""
-"//parent and child were both loaded in a previous session\n"
+"<![CDATA[//parent and child were both loaded in a previous session\n"
 "parent.addChild(child);\n"
 "Child newChild = new Child();\n"
 "parent.addChild(newChild);\n"
 "session.update(parent);\n"
-"session.flush();"
+"session.flush();]]>"
 
 #. Tag: para
 #: example_parentchild.xml:251
-#, fuzzy, no-c-format
-msgid ""
-"This may be suitable for the case of a generated identifier, but what about "
-"assigned identifiers and composite identifiers? This is more difficult, "
-"since Hibernate cannot use the identifier property to distinguish between a "
-"newly instantiated object, with an identifier assigned by the user, and an "
-"object loaded in a previous session. In this case, Hibernate will either use "
-"the timestamp or version property, or will actually query the second-level "
-"cache or, worst case, the database, to see if the row exists."
-msgstr ""
-"这对于自动生成标识的情况是非常好的,但是自分配的标识和复合标识怎么办呢?这是"
-"有点麻烦,因为 Hibernate 没有办法区分新实例化的对象(标识被用户指定了)和前一"
-"个 Session 装入的对象。在这种情况下,Hibernate 会使用 timestamp 或 version 属"
-"性,或者查询第二级缓存,或者最坏的情况,查询数据库,来确认是否此行存在。"
+#, no-c-format
+msgid "This may be suitable for the case of a generated identifier, but what about assigned identifiers and composite identifiers? This is more difficult, since Hibernate cannot use the identifier property to distinguish between a newly instantiated object, with an identifier assigned by the user, and an object loaded in a previous session. In this case, Hibernate will either use the timestamp or version property, or will actually query the second-level cache or, worst case, the database, to see if the row exists."
+msgstr "这对于自动生成标识的情况是非常好的,但是自分配的标识和复合标识怎么办呢?这是有点麻烦,因为 Hibernate 没有办法区分新实例化的对象(标识被用户指定了)和前一个 Session 装入的对象。在这种情况下,Hibernate 会使用 timestamp 或 version 属性,或者查询第二级缓存,或者最坏的情况,查询数据库,来确认是否此行存在。 "
 
 #. Tag: title
 #: example_parentchild.xml:284
@@ -619,27 +448,13 @@
 
 #. Tag: para
 #: example_parentchild.xml:286
-#, fuzzy, no-c-format
-msgid ""
-"The sections we have just covered can be a bit confusing. However, in "
-"practice, it all works out nicely. Most Hibernate applications use the "
-"parent/child pattern in many places."
-msgstr ""
-"这里有不少东西需要融会贯通,可能会让新手感到迷惑。但是在实践中它们都工作地非"
-"常好。大部分 Hibernate 应用程序都会经常用到父子对象模式。"
+#, no-c-format
+msgid "The sections we have just covered can be a bit confusing. However, in practice, it all works out nicely. Most Hibernate applications use the parent/child pattern in many places."
+msgstr "这里有不少东西需要融会贯通,可能会让新手感到迷惑。但是在实践中它们都工作地非常好。大部分 Hibernate 应用程序都会经常用到父子对象模式。 "
 
 #. Tag: para
 #: example_parentchild.xml:291
-#, fuzzy, no-c-format
-msgid ""
-"We mentioned an alternative in the first paragraph. None of the above issues "
-"exist in the case of <literal>&lt;composite-element&gt;</literal> mappings, "
-"which have exactly the semantics of a parent/child relationship. "
-"Unfortunately, there are two big limitations with composite element classes: "
-"composite elements cannot own collections and they should not be the child "
-"of any entity other than the unique parent."
-msgstr ""
-"在第一段中我们曾经提到另一个方案。上面的这些问题都不会出现在 <literal>&lt;"
-"composite-element&gt;</literal> 映射中,它准确地表达了父子关系的语义。很不幸"
-"复合元素还有两个重大限制:复合元素不能拥有 collections,并且,除了用于惟一的"
-"父对象外,它们不能再作为其它任何实体的子对象。"
+#, no-c-format
+msgid "We mentioned an alternative in the first paragraph. None of the above issues exist in the case of <literal>&lt;composite-element&gt;</literal> mappings, which have exactly the semantics of a parent/child relationship. Unfortunately, there are two big limitations with composite element classes: composite elements cannot own collections and they should not be the child of any entity other than the unique parent."
+msgstr "在第一段中我们曾经提到另一个方案。上面的这些问题都不会出现在 <literal>&lt;composite-element&gt;</literal> 映射中,它准确地表达了父子关系的语义。很不幸复合元素还有两个重大限制:复合元素不能拥有 collections,并且,除了用于惟一的父对象外,它们不能再作为其它任何实体的子对象。 "
+

Modified: projects/docs/enterprise/5.0/Hibernate/Hibernate_Core/zh-CN/example_weblog.po
===================================================================
--- projects/docs/enterprise/5.0/Hibernate/Hibernate_Core/zh-CN/example_weblog.po	2009-11-20 08:07:46 UTC (rev 96634)
+++ projects/docs/enterprise/5.0/Hibernate/Hibernate_Core/zh-CN/example_weblog.po	2009-11-20 08:37:25 UTC (rev 96635)
@@ -6,7 +6,7 @@
 "Project-Id-Version: Collection_Mapping\n"
 "Report-Msgid-Bugs-To: http://bugs.kde.org\n"
 "POT-Creation-Date: 2009-09-15 07:03+0000\n"
-"PO-Revision-Date: 2007-02-26 10:59+1000\n"
+"PO-Revision-Date: 2009-11-20 17:35+1000\n"
 "Last-Translator: Xi HUANG <xhuang at redhat.com>\n"
 "Language-Team:  <en at li.org>\n"
 "MIME-Version: 1.0\n"
@@ -28,18 +28,13 @@
 
 #. Tag: para
 #: example_weblog.xml:34
-#, fuzzy, no-c-format
-msgid ""
-"The persistent classes here represent a weblog and an item posted in a "
-"weblog. They are to be modelled as a standard parent/child relationship, but "
-"we will use an ordered bag, instead of a set:"
-msgstr ""
-"下面的持久化类表示一个 weblog 和在其中张贴的一个贴子。他们是标准的父/子关系模"
-"型,但是我们会用一个有序包(ordered bag)而非集合(set)。"
+#, no-c-format
+msgid "The persistent classes here represent a weblog and an item posted in a weblog. They are to be modelled as a standard parent/child relationship, but we will use an ordered bag, instead of a set:"
+msgstr "下面的持久化类表示一个 weblog 和在其中张贴的一个贴子。他们是标准的父/子关系模型,但是我们会用一个有序包(ordered bag)而非集合(set)。 "
 
 #. Tag: programlisting
 #: example_weblog.xml:40
-#, fuzzy, no-c-format
+#, no-c-format
 msgid ""
 "<![CDATA[package eg;\n"
 "\n"
@@ -70,7 +65,7 @@
 "    }\n"
 "}]]>"
 msgstr ""
-"package eg;\n"
+"<![CDATA[package eg;\n"
 "\n"
 "import java.util.List;\n"
 "\n"
@@ -97,11 +92,11 @@
 "    public void setName(String string) {\n"
 "        _name = string;\n"
 "    }\n"
-"}"
+"}]]>"
 
 #. Tag: programlisting
 #: example_weblog.xml:42
-#, fuzzy, no-c-format
+#, no-c-format
 msgid ""
 "<![CDATA[package eg;\n"
 "\n"
@@ -147,7 +142,7 @@
 "    }\n"
 "}]]>"
 msgstr ""
-"package eg;\n"
+"<![CDATA[package eg;\n"
 "\n"
 "import java.text.DateFormat;\n"
 "import java.util.Calendar;\n"
@@ -189,7 +184,7 @@
 "    public void setTitle(String string) {\n"
 "        _title = string;\n"
 "    }\n"
-"}"
+"}]]>"
 
 #. Tag: title
 #: example_weblog.xml:47
@@ -199,13 +194,13 @@
 
 #. Tag: para
 #: example_weblog.xml:49
-#, fuzzy, no-c-format
+#, no-c-format
 msgid "The XML mappings are now straightforward. For example:"
-msgstr "下列的 XML 映射应该是很直白的。"
+msgstr "下列的 XML 映射应该是很直白的。例如:"
 
 #. Tag: programlisting
 #: example_weblog.xml:53
-#, fuzzy, no-c-format
+#, no-c-format
 msgid ""
 "<![CDATA[<?xml version=\"1.0\"?>\n"
 "<!DOCTYPE hibernate-mapping PUBLIC\n"
@@ -247,49 +242,49 @@
 "\n"
 "</hibernate-mapping>]]>"
 msgstr ""
-"&lt;?xml version=\"1.0\"?&gt;\n"
-"&lt;!DOCTYPE hibernate-mapping PUBLIC\n"
+"<![CDATA[<?xml version=\"1.0\"?>\n"
+"<!DOCTYPE hibernate-mapping PUBLIC\n"
 "    \"-//Hibernate/Hibernate Mapping DTD 3.0//EN\"\n"
-"    \"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd\"&gt;\n"
+"    \"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd\">\n"
 "\n"
-"&lt;hibernate-mapping package=\"eg\"&gt;\n"
+"<hibernate-mapping package=\"eg\">\n"
 "\n"
-"    &lt;class\n"
+"    <class\n"
 "        name=\"Blog\"\n"
-"        table=\"BLOGS\"&gt;\n"
+"        table=\"BLOGS\">\n"
 "\n"
-"        &lt;id\n"
+"        <id\n"
 "            name=\"id\"\n"
-"            column=\"BLOG_ID\"&gt;\n"
+"            column=\"BLOG_ID\">\n"
 "\n"
-"            &lt;generator class=\"native\"/&gt;\n"
+"            <generator class=\"native\"/>\n"
 "\n"
-"        &lt;/id&gt;\n"
+"        </id>\n"
 "\n"
-"        &lt;property\n"
+"        <property\n"
 "            name=\"name\"\n"
 "            column=\"NAME\"\n"
 "            not-null=\"true\"\n"
-"            unique=\"true\"/&gt;\n"
+"            unique=\"true\"/>\n"
 "\n"
-"        &lt;bag\n"
+"        <bag\n"
 "            name=\"items\"\n"
 "            inverse=\"true\"\n"
 "            order-by=\"DATE_TIME\"\n"
-"            cascade=\"all\"&gt;\n"
+"            cascade=\"all\">\n"
 "\n"
-"            &lt;key column=\"BLOG_ID\"/&gt;\n"
-"            &lt;one-to-many class=\"BlogItem\"/&gt;\n"
+"            <key column=\"BLOG_ID\"/>\n"
+"            <one-to-many class=\"BlogItem\"/>\n"
 "\n"
-"        &lt;/bag&gt;\n"
+"        </bag>\n"
 "\n"
-"    &lt;/class&gt;\n"
+"    </class>\n"
 "\n"
-"&lt;/hibernate-mapping&gt;"
+"</hibernate-mapping>]]>"
 
 #. Tag: programlisting
 #: example_weblog.xml:55
-#, fuzzy, no-c-format
+#, no-c-format
 msgid ""
 "<![CDATA[<?xml version=\"1.0\"?>\n"
 "<!DOCTYPE hibernate-mapping PUBLIC\n"
@@ -335,49 +330,49 @@
 "\n"
 "</hibernate-mapping>]]>"
 msgstr ""
-"&lt;?xml version=\"1.0\"?&gt;\n"
-"&lt;!DOCTYPE hibernate-mapping PUBLIC\n"
+"<![CDATA[<?xml version=\"1.0\"?>\n"
+"<!DOCTYPE hibernate-mapping PUBLIC\n"
 "    \"-//Hibernate/Hibernate Mapping DTD 3.0//EN\"\n"
-"    \"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd\"&gt;\n"
+"    \"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd\">\n"
 "\n"
-"&lt;hibernate-mapping package=\"eg\"&gt;\n"
+"<hibernate-mapping package=\"eg\">\n"
 "\n"
-"    &lt;class\n"
+"    <class\n"
 "        name=\"BlogItem\"\n"
 "        table=\"BLOG_ITEMS\"\n"
-"        dynamic-update=\"true\"&gt;\n"
+"        dynamic-update=\"true\">\n"
 "\n"
-"        &lt;id\n"
+"        <id\n"
 "            name=\"id\"\n"
-"            column=\"BLOG_ITEM_ID\"&gt;\n"
+"            column=\"BLOG_ITEM_ID\">\n"
 "\n"
-"            &lt;generator class=\"native\"/&gt;\n"
+"            <generator class=\"native\"/>\n"
 "\n"
-"        &lt;/id&gt;\n"
+"        </id>\n"
 "\n"
-"        &lt;property\n"
+"        <property\n"
 "            name=\"title\"\n"
 "            column=\"TITLE\"\n"
-"            not-null=\"true\"/&gt;\n"
+"            not-null=\"true\"/>\n"
 "\n"
-"        &lt;property\n"
+"        <property\n"
 "            name=\"text\"\n"
 "            column=\"TEXT\"\n"
-"            not-null=\"true\"/&gt;\n"
+"            not-null=\"true\"/>\n"
 "\n"
-"        &lt;property\n"
+"        <property\n"
 "            name=\"datetime\"\n"
 "            column=\"DATE_TIME\"\n"
-"            not-null=\"true\"/&gt;\n"
+"            not-null=\"true\"/>\n"
 "\n"
-"        &lt;many-to-one\n"
+"        <many-to-one\n"
 "            name=\"blog\"\n"
 "            column=\"BLOG_ID\"\n"
-"            not-null=\"true\"/&gt;\n"
+"            not-null=\"true\"/>\n"
 "\n"
-"    &lt;/class&gt;\n"
+"    </class>\n"
 "\n"
-"&lt;/hibernate-mapping&gt;"
+"</hibernate-mapping>]]>"
 
 #. Tag: title
 #: example_weblog.xml:60
@@ -387,15 +382,13 @@
 
 #. Tag: para
 #: example_weblog.xml:62
-#, fuzzy, no-c-format
-msgid ""
-"The following class demonstrates some of the kinds of things we can do with "
-"these classes using Hibernate:"
-msgstr "下面的类演示了我们可以使用 Hibernate 对这些类进行的一些操作。"
+#, no-c-format
+msgid "The following class demonstrates some of the kinds of things we can do with these classes using Hibernate:"
+msgstr "下面的类演示了我们可以使用 Hibernate 对这些类进行的一些操作:"
 
 #. Tag: programlisting
 #: example_weblog.xml:67
-#, fuzzy, no-c-format
+#, no-c-format
 msgid ""
 "<![CDATA[package eg;\n"
 "\n"
@@ -535,8 +528,7 @@
 "        Transaction tx = null;\n"
 "        try {\n"
 "            tx = session.beginTransaction();\n"
-"            BlogItem item = (BlogItem) session.load(BlogItem.class, "
-"itemid);\n"
+"            BlogItem item = (BlogItem) session.load(BlogItem.class, itemid);\n"
 "            item.setText(text);\n"
 "            tx.commit();\n"
 "        }\n"
@@ -636,7 +628,7 @@
 "    }\n"
 "}]]>"
 msgstr ""
-"package eg;\n"
+"<![CDATA[package eg;\n"
 "\n"
 "import java.util.ArrayList;\n"
 "import java.util.Calendar;\n"
@@ -774,8 +766,7 @@
 "        Transaction tx = null;\n"
 "        try {\n"
 "            tx = session.beginTransaction();\n"
-"            BlogItem item = (BlogItem) session.load(BlogItem.class, "
-"itemid);\n"
+"            BlogItem item = (BlogItem) session.load(BlogItem.class, itemid);\n"
 "            item.setText(text);\n"
 "            tx.commit();\n"
 "        }\n"
@@ -854,7 +845,7 @@
 "            Query q = session.createQuery(\n"
 "                \"from Blog as blog \" +\n"
 "                \"inner join blog.items as blogItem \" +\n"
-"                \"where blogItem.datetime &gt; :minDate\"\n"
+"                \"where blogItem.datetime > :minDate\"\n"
 "            );\n"
 "\n"
 "            Calendar cal = Calendar.getInstance();\n"
@@ -873,4 +864,5 @@
 "        }\n"
 "        return result;\n"
 "    }\n"
-"}"
+"}]]>"
+




More information about the jboss-cvs-commits mailing list